gtk+ r19830 - trunk/gtk
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19830 - trunk/gtk
- Date: Thu, 13 Mar 2008 00:39:15 +0000 (GMT)
Author: federico
Date: Thu Mar 13 00:39:15 2008
New Revision: 19830
URL: http://svn.gnome.org/viewvc/gtk+?rev=19830&view=rev
Log:
Factor out some code
Signed-off-by: Federico Mena Quintero <federico gnu org>
Modified:
trunk/gtk/gtkfilechooserentry.c
Modified: trunk/gtk/gtkfilechooserentry.c
==============================================================================
--- trunk/gtk/gtkfilechooserentry.c (original)
+++ trunk/gtk/gtkfilechooserentry.c Thu Mar 13 00:39:15 2008
@@ -594,6 +594,15 @@
}
static void
+clear_completions_if_not_in_change (GtkFileChooserEntry *chooser_entry)
+{
+ if (chooser_entry->in_change)
+ return;
+
+ clear_completions (chooser_entry);
+}
+
+static void
gtk_file_chooser_entry_do_delete_text (GtkEditable *editable,
gint start_pos,
gint end_pos)
@@ -602,10 +611,7 @@
parent_editable_iface->do_delete_text (editable, start_pos, end_pos);
- if (chooser_entry->in_change)
- return;
-
- clear_completions (chooser_entry);
+ clear_completions_if_not_in_change (chooser_entry);
}
static void
@@ -616,10 +622,7 @@
parent_editable_iface->set_position (editable, position);
- if (chooser_entry->in_change)
- return;
-
- clear_completions (chooser_entry);
+ clear_completions_if_not_in_change (chooser_entry);
}
static void
@@ -631,10 +634,7 @@
parent_editable_iface->set_selection_bounds (editable, start_pos, end_pos);
- if (chooser_entry->in_change)
- return;
-
- clear_completions (chooser_entry);
+ clear_completions_if_not_in_change (chooser_entry);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]