Changeset 3153


Ignore:
Timestamp:
Sep 23, 2007, 10:20:01 PM (15 years ago)
Author:
charles
Message:

accept some of the ideas in ticket #343 -- add logo and description in `about' dialog, and unbundle our lock icon because gtk+ has a stock authentication icon.

Location:
trunk/gtk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r3126 r3153  
    121121const BuiltinIconInfo my_builtin_icons [] =
    122122{
    123     { tr_icon_full, "ICON_TRANSMISSION" }
     123    { tr_icon_full, "transmission-logo" }
    124124};
    125125
  • trunk/gtk/main.c

    r3126 r3153  
    391391        "widget \"TransmissionDialog\" style \"transmission-standard\"\n" );
    392392
    393     gtk_window_set_default_icon_name ( "ICON_TRANSMISSION" );
     393    gtk_window_set_default_icon_name ( "transmission-logo" );
    394394}
    395395
     
    903903  gtk_about_dialog_set_wrap_license (a, TRUE);
    904904#endif
    905   gtk_about_dialog_set_website (a, "http://transmission.m0k.org/");
    906   gtk_about_dialog_set_copyright (a, _("Copyright 2005-2007 The Transmission Project"));
    907   gtk_about_dialog_set_authors (a, authors);
    908   gtk_about_dialog_set_translator_credits (a, _("translator-credits"));
    909   g_signal_connect_swapped (w, "response", G_CALLBACK (gtk_widget_destroy), w);
    910   gtk_widget_show_all (w);
     905  gtk_about_dialog_set_logo_icon_name( a, "transmission-logo" );
     906  gtk_about_dialog_set_comments( a, _("A GTK+ BitTorrent Client.") );
     907  gtk_about_dialog_set_website( a, "http://transmission.m0k.org/" );
     908  gtk_about_dialog_set_copyright( a, _("Copyright 2005-2007 The Transmission Project") );
     909  gtk_about_dialog_set_authors( a, authors );
     910  gtk_about_dialog_set_translator_credits( a, _("translator-credits") );
     911  g_signal_connect_swapped( w, "response", G_CALLBACK (gtk_widget_destroy), w );
     912  gtk_widget_show_all( w );
    911913}
    912914
  • trunk/gtk/torrent-inspector.c

    r3147 r3153  
    3434#include "tr_torrent.h"
    3535#include "dot-icons.h"
    36 #include "lock-icon.h"
    3736#include "hig.h"
    3837#include "torrent-inspector.h"
     
    360359                  gpointer             data UNUSED)
    361360{
    362   static GdkPixbuf * lock = NULL;
    363361  gboolean is_encrypted = FALSE;
    364362  gtk_tree_model_get (tree_model, iter, PEER_COL_IS_ENCRYPTED, &is_encrypted,
    365363                                        -1);
    366   if (!lock) lock = gdk_pixbuf_new_from_inline (-1, lock_icon, FALSE, NULL);
    367364  g_object_set (renderer, "xalign", (gfloat)0.0,
    368365                          "yalign", (gfloat)0.5,
    369                           "pixbuf", (is_encrypted ? lock : NULL),
     366                          "stock-id", (is_encrypted ? GTK_STOCK_DIALOG_AUTHENTICATION : NULL),
    370367                          NULL);
    371368}
     
    574571        c = gtk_tree_view_column_new_with_attributes (t, r, NULL);
    575572        gtk_tree_view_column_set_sizing (c, GTK_TREE_VIEW_COLUMN_FIXED);
    576         gtk_tree_view_column_set_fixed_width (c, 32);
     573        gtk_tree_view_column_set_fixed_width (c, 20);
    577574        gtk_tree_view_column_set_cell_data_func (c, r, render_encrypted,
    578575                                                 NULL, NULL);
     
    584581        c = gtk_tree_view_column_new_with_attributes (t, r, NULL);
    585582        gtk_tree_view_column_set_sizing (c, GTK_TREE_VIEW_COLUMN_FIXED);
    586         gtk_tree_view_column_set_fixed_width (c, 32);
     583        gtk_tree_view_column_set_fixed_width (c, 20);
    587584        gtk_tree_view_column_set_cell_data_func (c, r, render_connection,
    588585                                                 NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.