]> Pileus Git - ~andy/gtk/commitdiff
Block the ::changed handler during the emission of ::match-selected.
authorMatthias Clasen <maclas@gmx.de>
Mon, 15 Mar 2004 23:56:44 +0000 (23:56 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 15 Mar 2004 23:56:44 +0000 (23:56 +0000)
Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press):
Block the ::changed handler during the emission of ::match-selected.
Partial fix for #137226.

* gtk/gtkfilechooserentry.c: Remove the no longer needed
no_pop_down flag.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentrycompletion.c
gtk/gtkfilechooserentry.c

index 03c3bc2b9f157f883fbd7f90b7fc81681f6a9702..9cfed65a76b56f55053e2068ac11acfef0c19cd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
+       Block the ::changed handler during the emission of ::match-selected.
+       Partial fix for #137226.
+
+       * gtk/gtkfilechooserentry.c: Remove the no longer needed 
+       no_pop_down flag.
+
+Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
+       Fix a typo in the docs.
+
 2004-03-15  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Updates.
index 03c3bc2b9f157f883fbd7f90b7fc81681f6a9702..9cfed65a76b56f55053e2068ac11acfef0c19cd3 100644 (file)
@@ -1,3 +1,17 @@
+Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
+       Block the ::changed handler during the emission of ::match-selected.
+       Partial fix for #137226.
+
+       * gtk/gtkfilechooserentry.c: Remove the no longer needed 
+       no_pop_down flag.
+
+Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
+       Fix a typo in the docs.
+
 2004-03-15  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Updates.
index 03c3bc2b9f157f883fbd7f90b7fc81681f6a9702..9cfed65a76b56f55053e2068ac11acfef0c19cd3 100644 (file)
@@ -1,3 +1,17 @@
+Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
+       Block the ::changed handler during the emission of ::match-selected.
+       Partial fix for #137226.
+
+       * gtk/gtkfilechooserentry.c: Remove the no longer needed 
+       no_pop_down flag.
+
+Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
+       Fix a typo in the docs.
+
 2004-03-15  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Updates.
index 03c3bc2b9f157f883fbd7f90b7fc81681f6a9702..9cfed65a76b56f55053e2068ac11acfef0c19cd3 100644 (file)
@@ -1,3 +1,17 @@
+Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
+       Block the ::changed handler during the emission of ::match-selected.
+       Partial fix for #137226.
+
+       * gtk/gtkfilechooserentry.c: Remove the no longer needed 
+       no_pop_down flag.
+
+Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
+       Fix a typo in the docs.
+
 2004-03-15  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Updates.
index 03c3bc2b9f157f883fbd7f90b7fc81681f6a9702..9cfed65a76b56f55053e2068ac11acfef0c19cd3 100644 (file)
@@ -1,3 +1,17 @@
+Tue Mar 16 00:56:11 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_list_button_press): 
+       Block the ::changed handler during the emission of ::match-selected.
+       Partial fix for #137226.
+
+       * gtk/gtkfilechooserentry.c: Remove the no longer needed 
+       no_pop_down flag.
+
+Tue Mar 16 00:20:51 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend):
+       Fix a typo in the docs.
+
 2004-03-15  Tor Lillqvist  <tml@iki.fi>
 
        * README.win32: Updates.
index 0ca623ac2a0d4087da911f50351d061951d85117..6cdc07584e8fd14c48151310f9ae38b1171d70ec 100644 (file)
@@ -627,9 +627,13 @@ gtk_entry_completion_list_button_press (GtkWidget      *widget,
                                &iter, path);
       gtk_tree_path_free (path);
 
+      g_signal_handler_block (completion->priv->entry,
+                             completion->priv->changed_id);
       g_signal_emit (completion, entry_completion_signals[MATCH_SELECTED],
                      0, GTK_TREE_MODEL (completion->priv->filter_model),
                      &iter, &entry_set);
+      g_signal_handler_unblock (completion->priv->entry,
+                               completion->priv->changed_id);
 
       if (!entry_set)
         {
index 87be48ab528e83c72fa1d44ab5b3cae51dea9915..b967ea011ccdab662edf287d8e2106b54593705b 100644 (file)
@@ -56,7 +56,6 @@ struct _GtkFileChooserEntry
 
   guint has_completion : 1;
   guint in_change      : 1;
-  guint no_pop_down    : 1;
 };
 
 enum
@@ -266,10 +265,6 @@ match_selected_callback (GtkEntryCompletion  *completion,
   gtk_file_path_free (path);
   g_free (display_name);
 
-  /* We surpress the completion for a second.  It's confusing to click on an
-   * entry and have it pop back up immediately */
-  chooser_entry->no_pop_down = TRUE;
-
   return TRUE;
 }
 
@@ -296,10 +291,6 @@ completion_match_func (GtkEntryCompletion *comp,
       return FALSE;
     }
 
-  /* If this is set, than someone is surpressing the popdown temporarily */
-  if (chooser_entry->no_pop_down)
-    return FALSE;
-
   gtk_tree_model_get (GTK_TREE_MODEL (chooser_entry->completion_store), iter, DISPLAY_NAME_COLUMN, &name, -1);
   if (!name)
     {
@@ -772,7 +763,6 @@ clear_completion_callback (GtkFileChooserEntry *chooser_entry,
       chooser_entry->has_completion = FALSE;
       gtk_file_chooser_entry_changed (GTK_EDITABLE (chooser_entry));
     }
-  chooser_entry->no_pop_down = FALSE;
 }
 
 /**