[gtk+/gtk-2-24] filechooserbutton: Don't emit file-set signal when the change is not the result of a user action



commit f8de7b17572e6a2002802ab880db6c1fbe6d39e8
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 20 18:30:30 2013 -0600

    filechooserbutton: Don't emit file-set signal when the change is not the result of a user action
    
    We only emit that signal when the user confirms the button's internal GtkFileChooserDialog,
    or when he drags-and-drops stuff into the button.
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 gtk/gtkfilechooserbutton.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index ed924fc..ef18162 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -616,8 +616,6 @@ gtk_file_chooser_button_select_file (GtkFileChooser *chooser,
 
       priv->selection_while_inactive = g_object_ref (file);
 
-      g_signal_emit (button, file_chooser_button_signals[FILE_SET], 0);
-
       return TRUE;
     }
 }
@@ -644,8 +642,6 @@ gtk_file_chooser_button_unselect_file (GtkFileChooser *chooser,
              g_object_unref (priv->selection_while_inactive);
              priv->selection_while_inactive = NULL;
            }
-
-         g_signal_emit (button, file_chooser_button_signals[FILE_SET], 0);
        }
     }
 }
@@ -669,8 +665,6 @@ gtk_file_chooser_button_unselect_all (GtkFileChooser *chooser)
          g_object_unref (priv->selection_while_inactive);
          priv->selection_while_inactive = NULL;
        }
-
-      g_signal_emit (button, file_chooser_button_signals[FILE_SET], 0);
     }
 }
 


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