[gnome-logs/wip/batching] Switch category when a new row is selected



commit 4389804b1c88a584f7340faba43f6730e1b32fa0
Author: David King <davidk gnome org>
Date:   Wed Feb 26 17:06:14 2014 +0000

    Switch category when a new row is selected
    
    Change the current category based on the row that is selected, not when
    a row is activated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724980

 data/gl-categorylist.ui |    2 +-
 src/gl-categorylist.c   |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/data/gl-categorylist.ui b/data/gl-categorylist.ui
index b438d2f..feebf00 100644
--- a/data/gl-categorylist.ui
+++ b/data/gl-categorylist.ui
@@ -1,7 +1,7 @@
 <interface domain="gnome-logs">
     <template class="GlCategoryList" parent="GtkListBox">
         <property name="visible">True</property>
-        <signal name="row-activated" handler="on_gl_category_list_row_activated" />
+        <signal name="row-selected" handler="on_gl_category_list_row_selected" />
         <child>
             <object class="GtkListBoxRow" id="important">
                 <property name="visible">True</property>
diff --git a/src/gl-categorylist.c b/src/gl-categorylist.c
index f6be836..f15f6bc 100644
--- a/src/gl-categorylist.c
+++ b/src/gl-categorylist.c
@@ -40,9 +40,9 @@ typedef struct
 G_DEFINE_TYPE_WITH_PRIVATE (GlCategoryList, gl_category_list, GTK_TYPE_LIST_BOX)
 
 static void
-on_gl_category_list_row_activated (GlCategoryList *listbox,
-                                   GtkListBoxRow *row,
-                                   gpointer user_data)
+on_gl_category_list_row_selected (GlCategoryList *listbox,
+                                  GtkListBoxRow *row,
+                                  gpointer user_data)
 {
     GlCategoryListPrivate *priv;
     GtkWidget *toplevel;
@@ -145,7 +145,7 @@ gl_category_list_class_init (GlCategoryListClass *klass)
                                                   usage);
 
     gtk_widget_class_bind_template_callback (widget_class,
-                                             on_gl_category_list_row_activated);
+                                             on_gl_category_list_row_selected);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]