From d5ecdefc2c6e815be63342762789c1dda5b0f884 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 3 Feb 2008 17:10:03 +0000 Subject: [PATCH] (gtk) #677: hig tweaks --- gtk/actions.c | 18 ++++++++++++------ gtk/main.c | 2 +- gtk/makemeta-ui.c | 2 +- gtk/ui.h | 10 ++++++---- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/gtk/actions.c b/gtk/actions.c index 175b070b2..7e1fb4ea6 100644 --- a/gtk/actions.c +++ b/gtk/actions.c @@ -101,8 +101,12 @@ static GtkActionEntry entries[] = { "sort-menu", NULL, N_("_Sort Torrents By"), NULL, NULL, NULL }, { "edit-menu", NULL, N_("_Edit"), NULL, NULL, NULL }, { "help-menu", NULL, N_("_Help"), NULL, NULL, NULL }, - { "open-torrent", GTK_STOCK_OPEN, - NULL, NULL, N_("Open Torrent"), G_CALLBACK(action_cb) }, + { "open-torrent-toolbar", GTK_STOCK_OPEN, N_("_Open"), NULL, + N_("Open an existing torrent"), + G_CALLBACK(action_cb) }, + { "open-torrent-menu", GTK_STOCK_OPEN, N_("_Open..."), "O", + N_("Open an existing torrent"), + G_CALLBACK(action_cb) }, { "start-torrent", GTK_STOCK_MEDIA_PLAY, N_("_Start"), "S", NULL, G_CALLBACK(action_cb) }, { "show-stats", NULL, N_("_Statistics"), NULL, NULL, G_CALLBACK(action_cb) }, @@ -112,10 +116,12 @@ static GtkActionEntry entries[] = N_("_Pause"), "P", NULL, G_CALLBACK(action_cb) }, { "remove-torrent", GTK_STOCK_REMOVE, N_("_Remove"), "Delete", NULL, G_CALLBACK(action_cb) }, - { "create-torrent", GTK_STOCK_NEW, - N_("Create _New Torrent"), NULL, NULL, G_CALLBACK(action_cb) }, - { "close", GTK_STOCK_CLOSE, - N_("_Close"), "W", NULL, G_CALLBACK(action_cb) }, + { "new-torrent", GTK_STOCK_NEW, N_("_New..."), NULL, + N_("Create a new torrent"), + G_CALLBACK(action_cb) }, + { "close", GTK_STOCK_CLOSE, N_("_Close"), "W", + N_("Close main window"), + G_CALLBACK(action_cb) }, { "quit", GTK_STOCK_QUIT, N_("_Quit"), "Q", NULL, G_CALLBACK(action_cb) }, { "select-all", GTK_STOCK_SELECT_ALL, diff --git a/gtk/main.c b/gtk/main.c index e95a6ab8e..34bd606df 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -978,7 +978,7 @@ doAction ( const char * action_name, gpointer user_data ) GtkTreeSelection * s = tr_window_get_selection(data->wind); gtk_tree_selection_selected_foreach( s, updateTrackerForeach, data->wind ); } - else if (!strcmp (action_name, "create-torrent")) + else if (!strcmp (action_name, "new-torrent")) { GtkWidget * w = make_meta_ui( GTK_WINDOW( data->wind ), tr_core_handle( data->core ) ); diff --git a/gtk/makemeta-ui.c b/gtk/makemeta-ui.c index 5c5e34ef4..0ba9f44a4 100644 --- a/gtk/makemeta-ui.c +++ b/gtk/makemeta-ui.c @@ -232,7 +232,7 @@ make_meta_ui( GtkWindow * parent, tr_handle * handle ) MakeMetaUI * ui = g_new0 ( MakeMetaUI, 1 ); ui->handle = handle; - d = gtk_dialog_new_with_buttons( _("Create New Torrent"), + d = gtk_dialog_new_with_buttons( _("New Torrent"), parent, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, diff --git a/gtk/ui.h b/gtk/ui.h index b3022f079..1abb53c5f 100644 --- a/gtk/ui.h +++ b/gtk/ui.h @@ -2,8 +2,8 @@ const char * fallback_ui_file = "\n" " \n" " \n" -" \n" -" \n" +" \n" +" \n" " \n" " \n" " \n" @@ -23,6 +23,7 @@ const char * fallback_ui_file = " \n" " \n" " \n" +" \n" " \n" " \n" " \n" @@ -32,6 +33,7 @@ const char * fallback_ui_file = " \n" " \n" " \n" +" \n" " \n" " \n" " \n" @@ -43,7 +45,7 @@ const char * fallback_ui_file = " \n" "\n" " \n" -" \n" +" \n" " \n" " \n" " \n" @@ -63,7 +65,7 @@ const char * fallback_ui_file = " \n" "\n" " \n" -" \n" +" \n" " \n" " \n" " \n"