Changeset 4965


Ignore:
Timestamp:
Feb 7, 2008, 7:42:53 PM (14 years ago)
Author:
charles
Message:

(gtk 1.0x) #376: `About' dialog improvements by LucaFerretti?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0x/gtk/main.c

    r4933 r4965  
    884884
    885885static void
    886 about ( void )
    887 {
    888   GtkWidget * w = gtk_about_dialog_new ();
    889   GtkAboutDialog * a = GTK_ABOUT_DIALOG (w);
    890   const char *authors[] = { "Charles Kerr (Backend; GTK+)",
    891                             "Mitchell Livingston (Backend; OS X)",
    892                             "Eric Petit (Backend; OS X)",
    893                             "Josh Elsasser (Daemon; Backend; GTK+)",
    894                             "Bryan Varner (BeOS)",
    895                             NULL };
    896   gtk_about_dialog_set_version (a, LONG_VERSION_STRING );
     886about ( GtkWindow * parent )
     887{
     888    const char *authors[] =
     889    {
     890        "Charles Kerr (Backend; GTK+)",
     891        "Mitchell Livingston (Backend; OS X)",
     892        "Eric Petit (Backend; OS X)",
     893        "Josh Elsasser (Daemon; Backend; GTK+)",
     894        "Bryan Varner (BeOS)",
     895        NULL
     896    };
     897
     898    gtk_show_about_dialog( parent,
     899        "name", g_get_application_name(),
     900        "comments", _("A fast and easy BitTorrent client"),
     901        "version", LONG_VERSION_STRING,
     902        "website", "http://www.transmissionbt.com/",
     903        "copyright",_("Copyright 2005-2008 The Transmission Project"),
     904        "logo-icon-name", "transmission-logo",
    897905#ifdef SHOW_LICENSE
    898   gtk_about_dialog_set_license (a, LICENSE);
    899   gtk_about_dialog_set_wrap_license (a, TRUE);
     906        "license", LICENSE,
     907        "wrap-license", TRUE,
    900908#endif
    901   gtk_about_dialog_set_logo_icon_name( a, "transmission-logo" );
    902   gtk_about_dialog_set_comments( a, _("A fast and easy BitTorrent client") );
    903   gtk_about_dialog_set_website( a, "http://www.transmissionbt.com/" );
    904   gtk_about_dialog_set_copyright( a, _("Copyright 2005-2008 The Transmission Project") );
    905   gtk_about_dialog_set_authors( a, authors );
    906   /* note to translators: put yourself here for credit in the "About" dialog */
    907   gtk_about_dialog_set_translator_credits( a, _("translator-credits") );
    908   g_signal_connect_swapped( w, "response", G_CALLBACK (gtk_widget_destroy), w );
    909   gtk_widget_show_all( w );
     909        "authors", authors,
     910        "translator-credits", _("translator-credits"),
     911        NULL );
    910912}
    911913
     
    11161118    else if (!strcmp (action_name, "show-about-dialog"))
    11171119    {
    1118         about();
     1120        about( data->wind );
    11191121    }
    11201122    else if (!strcmp (action_name, "toggle-main-window"))
Note: See TracChangeset for help on using the changeset viewer.