mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 12:42:16 -05:00
Show help as tooltips in editlists
This commit is contained in:
parent
2f847428aa
commit
93d0341f9c
@ -201,12 +201,6 @@ editlist_add (GtkWidget *wid, gpointer userdata)
|
|||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
editlist_showhelp (GtkWidget *wid, gchar *help)
|
|
||||||
{
|
|
||||||
fe_message (help, FE_MSG_INFO);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
editlist_close (GtkWidget *wid, gpointer userdata)
|
editlist_close (GtkWidget *wid, gpointer userdata)
|
||||||
{
|
{
|
||||||
@ -351,6 +345,9 @@ editlist_gui_open (char *title1, char *title2, GSList *list, char *title, char *
|
|||||||
view = editlist_treeview_new (vbox, title1, title2);
|
view = editlist_treeview_new (vbox, title1, title2);
|
||||||
g_object_set_data (G_OBJECT (editlist_win), "view", view);
|
g_object_set_data (G_OBJECT (editlist_win), "view", view);
|
||||||
|
|
||||||
|
if (help)
|
||||||
|
gtk_widget_set_tooltip_text (view, help);
|
||||||
|
|
||||||
box = gtk_hbutton_box_new ();
|
box = gtk_hbutton_box_new ();
|
||||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (box), GTK_BUTTONBOX_SPREAD);
|
gtk_button_box_set_layout (GTK_BUTTON_BOX (box), GTK_BUTTONBOX_SPREAD);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), box, FALSE, FALSE, 2);
|
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"));
|
NULL, _("Cancel"));
|
||||||
gtkutil_button (box, GTK_STOCK_SAVE, 0, editlist_save,
|
gtkutil_button (box, GTK_STOCK_SAVE, 0, editlist_save,
|
||||||
file, _("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)));
|
store = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (view)));
|
||||||
editlist_load (store, list);
|
editlist_load (store, list);
|
||||||
|
Loading…
Reference in New Issue
Block a user