Mercurial > pidgin
diff src/gtksavedstatuses.c @ 12162:5e24b8e49522
[gaim-migrate @ 14463]
SF Patch #1361020 from Sadrul
'Double click to (1)"Use" a saved-status (2) Load Plugin-pref
Double-click to use a saved-status in the saved-status
dialog, and double-click to load a plugin and open it's
preference-dialog.'
I ask, he writes. Wow! :)
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 19 Nov 2005 15:19:35 +0000 |
parents | 3b52d94437f3 |
children | 81c63578aa39 |
line wrap: on
line diff
--- a/src/gtksavedstatuses.c Sat Nov 19 14:34:30 2005 +0000 +++ b/src/gtksavedstatuses.c Sat Nov 19 15:19:35 2005 +0000 @@ -387,6 +387,12 @@ return result; } +static void +use_savedstatus_cb(GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *column, StatusWindow *dialog) +{ + status_window_use_cb(NULL, dialog); +} + static GtkWidget * create_saved_status_list(StatusWindow *dialog) { @@ -415,6 +421,8 @@ treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model)); dialog->treeview = treeview; gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE); + g_signal_connect(G_OBJECT(treeview), "row-activated", + G_CALLBACK(use_savedstatus_cb), dialog); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); gtk_tree_selection_set_mode(sel, GTK_SELECTION_MULTIPLE);