[gtk/wip/baedert/for-master: 6/12] filechooserwidget: Rename a callback



commit fd1e236fdc16ffd1c2d6a2333e9de46df93f5605
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 18 07:23:02 2019 +0200

    filechooserwidget: Rename a callback

 gtk/gtkfilechooserwidget.c     | 12 ++++++------
 gtk/ui/gtkfilechooserwidget.ui |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index ea3c0e217e..c022c98a7a 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -1364,11 +1364,11 @@ should_trigger_location_entry (GtkFileChooserWidget *impl,
  * pressed.
  */
 static gboolean
-key_press_cb (GtkEventControllerKey *controller,
-              guint                  keyval,
-              guint                  keycode,
-              GdkModifierType        state,
-              gpointer               data)
+treeview_key_press_cb (GtkEventControllerKey *controller,
+                       guint                  keyval,
+                       guint                  keycode,
+                       GdkModifierType        state,
+                       gpointer               data)
 {
   GtkFileChooserWidget *impl = (GtkFileChooserWidget *) data;
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
@@ -8520,7 +8520,7 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
   gtk_widget_class_bind_template_callback (widget_class, rename_file_end);
   gtk_widget_class_bind_template_callback (widget_class, click_cb);
   gtk_widget_class_bind_template_callback (widget_class, long_press_cb);
-  gtk_widget_class_bind_template_callback (widget_class, key_press_cb);
+  gtk_widget_class_bind_template_callback (widget_class, treeview_key_press_cb);
   gtk_widget_class_bind_template_callback (widget_class, widget_key_press_cb);
 
   gtk_widget_class_set_css_name (widget_class, I_("filechooser"));
diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui
index 623bd86aec..f5af3532cb 100644
--- a/gtk/ui/gtkfilechooserwidget.ui
+++ b/gtk/ui/gtkfilechooserwidget.ui
@@ -153,7 +153,7 @@
                                             </child>
                                             <child>
                                               <object class="GtkEventControllerKey">
-                                                <signal name="key-pressed" handler="key_press_cb" 
swapped="no"/>
+                                                <signal name="key-pressed" handler="treeview_key_press_cb" 
swapped="no"/>
                                               </object>
                                             </child>
                                             <signal name="drag-data-received" 
handler="file_list_drag_data_received_cb" swapped="no"/>


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