Ticket #339: transmission-show.diff
File transmission-show.diff, 1.3 KB (added by infernux, 15 years ago) |
---|
-
gtk/actions.c
52 52 set_selected_file_priority ( priority ); 53 53 } 54 54 55 static GtkToggleActionEntry show_toggle_entries[] = 56 { 57 { "toggle-main-window", NULL, 58 N_("Show _Transmission"), NULL, NULL, G_CALLBACK(action_cb), TRUE } 59 }; 55 60 56 61 static GtkActionEntry entries[] = 57 62 { … … 86 91 N_("_About Transmission"), NULL, NULL, G_CALLBACK(action_cb) }, 87 92 { "show-debug-window", NULL, 88 93 N_("Show _Debug Window"), NULL, NULL, G_CALLBACK(action_cb) }, 89 { "toggle-main-window", "ICON_TRANSMISSION",90 N_("Show / Hide _Transmission"), NULL, NULL, G_CALLBACK(action_cb) },91 94 { "update-tracker", GTK_STOCK_REFRESH, 92 95 N_("Update Tracker"), NULL, NULL, G_CALLBACK(action_cb) } 93 96 }; … … 174 177 TR_PRI_NORMAL, 175 178 G_CALLBACK(priority_changed_cb), NULL); 176 179 180 gtk_action_group_add_toggle_actions ( action_group, 181 show_toggle_entries, 182 G_N_ELEMENTS(show_toggle_entries), 183 callback_user_data ); 184 177 185 gtk_action_group_add_actions( action_group, 178 186 entries, n_entries, 179 187 callback_user_data );