aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main_welcome.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-09-01 20:43:47 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-09-01 20:43:47 +0000
commit6fb53f8d202585fed1b50f806838226c400d2a16 (patch)
tree423b199c0bea18a8de45360072a0c2d8a762ac27 /gtk/main_welcome.c
parent6ac265b51248462ffb810fd54bd6d36d35799841 (diff)
When double clicking on an interface in the main welcome menu opens the edit interfaces
dialog box. This was suggested by stig. The patch was obtained by Irene Ruengeler. svn path=/trunk/; revision=38845
Diffstat (limited to 'gtk/main_welcome.c')
-rw-r--r--gtk/main_welcome.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/main_welcome.c b/gtk/main_welcome.c
index 6abc9253d9..c2bc30943b 100644
--- a/gtk/main_welcome.c
+++ b/gtk/main_welcome.c
@@ -1214,6 +1214,7 @@ welcome_new(void)
if_view = gtk_tree_view_new ();
g_object_set(G_OBJECT(if_view), "headers-visible", FALSE, NULL);
+ g_signal_connect(if_view, "row-activated", G_CALLBACK(options_interface_cb), (gpointer)welcome_hb);
g_object_set_data(G_OBJECT(welcome_hb), TREE_VIEW_INTERFACES, if_view);
renderer = gtk_cell_renderer_pixbuf_new();
column = gtk_tree_view_column_new_with_attributes ("",
@@ -1428,3 +1429,8 @@ GtkWidget* get_welcome_window(void)
return welcome_hb;
}
+displayed_interface get_interface_data(gint index)
+{
+ return g_array_index(interfaces, displayed_interface, index);
+}
+