diff options
author | TingPing <TingPing@users.noreply.github.com> | 2014-02-09 02:42:40 -0500 |
---|---|---|
committer | TingPing <TingPing@users.noreply.github.com> | 2014-02-09 02:42:40 -0500 |
commit | 93d0341f9cf6212c13e16c89bd4b227202b44786 (patch) | |
tree | 696dc59e70c7ddb5cfd2360b4bfdb7b48c83c971 /src | |
parent | 2f847428aa24872f34182cbfb7465232b429783d (diff) |
Show help as tooltips in editlists
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-gtk/editlist.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/fe-gtk/editlist.c b/src/fe-gtk/editlist.c index 1a9a28b6..f7e22d52 100644 --- a/src/fe-gtk/editlist.c +++ b/src/fe-gtk/editlist.c @@ -202,12 +202,6 @@ editlist_add (GtkWidget *wid, gpointer userdata) } static void -editlist_showhelp (GtkWidget *wid, gchar *help) -{ - fe_message (help, FE_MSG_INFO); -} - -static void editlist_close (GtkWidget *wid, gpointer userdata) { gtk_widget_destroy (editlist_win); @@ -351,6 +345,9 @@ editlist_gui_open (char *title1, char *title2, GSList *list, char *title, char * view = editlist_treeview_new (vbox, title1, title2); g_object_set_data (G_OBJECT (editlist_win), "view", view); + if (help) + gtk_widget_set_tooltip_text (view, help); + box = gtk_hbutton_box_new (); gtk_button_box_set_layout (GTK_BUTTON_BOX (box), GTK_BUTTONBOX_SPREAD); gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, FALSE, 2); @@ -365,9 +362,6 @@ editlist_gui_open (char *title1, char *title2, GSList *list, char *title, char * NULL, _("Cancel")); gtkutil_button (box, GTK_STOCK_SAVE, 0, editlist_save, file, _("Save")); - if (help) - gtkutil_button (box, GTK_STOCK_HELP, 0, editlist_showhelp, - help, _("Help")); store = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (view))); editlist_load (store, list); |