summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-02-20 18:30:30 -0600
committerFederico Mena Quintero <federico@gnome.org>2013-02-20 20:13:03 -0600
commit158d74d25733283ff396eb6246143d099cf0bbce (patch)
tree79111326a4055fecd1f45479dc6bf3808ca27bba
parentcefcafc5087cfbc627d2ad719e85b9a0b7a96232 (diff)
downloadgtk+-158d74d25733283ff396eb6246143d099cf0bbce.tar.gz
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>
-rw-r--r--gtk/gtkfilechooserbutton.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 252cd64e1a..47f5240237 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -652,8 +652,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;
}
}
@@ -680,8 +678,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);
}
}
}
@@ -705,8 +701,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);
}
}