Changeset 9093 for branches


Ignore:
Timestamp:
Sep 10, 2009, 5:39:44 PM (13 years ago)
Author:
charles
Message:

(1.7x gtk) add a Donate item to the Help menu

Location:
branches/1.7x/gtk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/gtk/actions.c

    r8946 r9093  
    107107    { "start-torrent", GTK_STOCK_MEDIA_PLAY, N_( "_Start" ), "<control>S", N_( "Start torrent" ), G_CALLBACK( action_cb ) },
    108108    { "show-stats", NULL, N_( "_Statistics" ), NULL, NULL, G_CALLBACK( action_cb ) },
     109    { "donate", NULL, N_( "_Donate" ), NULL, NULL, G_CALLBACK( action_cb ) },
    109110    { "verify-torrent", NULL, N_( "_Verify Local Data" ), NULL, NULL, G_CALLBACK( action_cb ) },
    110111    { "pause-torrent", GTK_STOCK_MEDIA_PAUSE, N_( "_Pause" ), "<control>P", N_( "Pause torrent" ), G_CALLBACK( action_cb ) },
  • branches/1.7x/gtk/main.c

    r9067 r9093  
    13301330        gtk_widget_show( dialog );
    13311331    }
     1332    else if( !strcmp( action_name, "donate" ) )
     1333    {
     1334        gtr_open_file( "http://www.transmissionbt.com/donate.php" );
     1335    }
    13321336    else if( !strcmp( action_name, "start-torrent" ) )
    13331337    {
  • branches/1.7x/gtk/ui.h

    r8850 r9093  
    5050    "      <menuitem action='toggle-message-log'/>\n"
    5151    "      <menuitem action='show-stats'/>\n"
     52    "      <separator/>\n"
     53    "      <menuitem action='donate'/>\n"
    5254    "      <separator/>\n"
    5355    "      <menuitem action='help'/>\n"
  • branches/1.7x/gtk/util.c

    r8941 r9093  
    505505        {
    506506            char * argv[] = { (char*)"xdg-open", (char*)path, NULL };
    507             g_spawn_async( NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
    508                            NULL, NULL, NULL, NULL );
    509         }
     507            opened = g_spawn_async( NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
     508                                    NULL, NULL, NULL, NULL );
     509        }
     510
     511        if( !opened )
     512            g_message( "Unable to open \"%s\"", path );
    510513    }
    511514}
Note: See TracChangeset for help on using the changeset viewer.