gnome-session r5182 - in trunk: . capplet
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-session r5182 - in trunk: . capplet
- Date: Thu, 8 Jan 2009 02:22:52 +0000 (UTC)
Author: lucasr
Date: Thu Jan 8 02:22:52 2009
New Revision: 5182
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5182&view=rev
Log:
2009-01-08 Lucas Rocha <lucasr gnome org>
Bug 559145 â Double-click startup program entry to open edit dialog
* capplet/gsm-properties-dialog.c (setup_dialog, on_row_activated):
open the edit app dialog when activating the respective entry in the
view.
Modified:
trunk/ChangeLog
trunk/capplet/gsm-properties-dialog.c
Modified: trunk/capplet/gsm-properties-dialog.c
==============================================================================
--- trunk/capplet/gsm-properties-dialog.c (original)
+++ trunk/capplet/gsm-properties-dialog.c Thu Jan 8 02:22:52 2009
@@ -1164,6 +1164,15 @@
}
static void
+on_row_activated (GtkTreeView *tree_view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ GsmPropertiesDialog *dialog)
+{
+ on_edit_app_clicked (NULL, dialog);
+}
+
+static void
on_autosave_value_notify (GConfClient *client,
guint id,
GConfEntry *entry,
@@ -1245,6 +1254,10 @@
gtk_tree_view_set_model (GTK_TREE_VIEW (treeview),
GTK_TREE_MODEL (dialog->priv->list_store));
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
+ g_signal_connect (treeview,
+ "row-activated",
+ G_CALLBACK (on_row_activated),
+ dialog);
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]