-static void
-dialog_current_folder_changed_cb (GtkFileChooser *dialog,
- gpointer user_data)
-{
- GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (user_data);
- GtkFileChooserButtonPrivate *priv = button->priv;
- gboolean update_from_dialog;
-
- if (!priv->active)
- update_from_dialog = TRUE;
- else if (priv->folder_change_needs_notification)
- update_from_dialog = TRUE;
- else
- update_from_dialog = FALSE;
-
- priv->folder_change_needs_notification = FALSE;
-
- if (update_from_dialog)
- {
- save_inactive_state (button);
-
- update_label_and_image (button);
- update_combo_box (button);
- g_signal_emit_by_name (button, "current-folder-changed");
- }
-}
-
-static void
-dialog_selection_changed_cb (GtkFileChooser *dialog,
- gpointer user_data)
-{
- GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (user_data);
- GtkFileChooserButtonPrivate *priv = button->priv;
- gboolean update_from_dialog;
-
- if (!priv->active)
- update_from_dialog = TRUE;
- else if (priv->selection_change_needs_notification)
- update_from_dialog = TRUE;
- else
- update_from_dialog = FALSE;
-
- priv->selection_change_needs_notification = FALSE;
-
- if (update_from_dialog)
- {
- save_inactive_state (button);
-
- update_label_and_image (button);
- update_combo_box (button);
- g_signal_emit_by_name (button, "selection-changed");
- }
-}
-