aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-selection-dialog.c
diff options
context:
space:
mode:
authorIain Holmes <iain@helixcode.com>2000-10-19 01:53:52 +0800
committerIain Holmes <iain@src.gnome.org>2000-10-19 01:53:52 +0800
commitb8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed (patch)
tree006ae26b4dd4d9435ceabc2a826e32353ceaf14c /shell/e-shell-folder-selection-dialog.c
parentdaaabd4d9793fe2751438125c052a0270c4844bb (diff)
downloadgsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.tar.gz
gsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.tar.zst
gsoc2013-evolution-b8cf5fe57c659a2cf8e9b204c0856235bdc9d5ed.zip
If the widget is not realized don't do anything, to prevent BadGC's at
2000-10-18 Iain Holmes <iain@helixcode.com> * e-shell-view.c (start_progress_bar): If the widget is not realized don't do anything, to prevent BadGC's at shut down. (stop_progress_bar): Don't draw anything if the widget is not realized. Same reason. * e-shell-folder-selection-dialog.c (dbl_click_cb): Emit the folder-selected signal. (e_shell_folder_selection_dialog_construct): Connect to the e-table's double-click signal. svn path=/trunk/; revision=5995
Diffstat (limited to 'shell/e-shell-folder-selection-dialog.c')
-rw-r--r--shell/e-shell-folder-selection-dialog.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c
index 7b835b2f99..dac2e90df3 100644
--- a/shell/e-shell-folder-selection-dialog.c
+++ b/shell/e-shell-folder-selection-dialog.c
@@ -121,6 +121,23 @@ impl_destroy (GtkObject *object)
}
+/* ETable callback */
+static void
+dbl_click_cb (EStorageSetView *essv,
+ int row,
+ EShellFolderSelectionDialog *folder_selection_dialog)
+{
+ EShellFolderSelectionDialogPrivate *priv;
+
+ priv = folder_selection_dialog->priv;
+ if (check_folder_type (folder_selection_dialog)) {
+ gtk_signal_emit (GTK_OBJECT (folder_selection_dialog),
+ signals[FOLDER_SELECTED],
+ e_shell_folder_selection_dialog_get_selected_path (folder_selection_dialog));
+ }
+}
+
+
/* GnomeDialog methods. */
static void
@@ -288,6 +305,9 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s
priv->storage_set_view = e_storage_set_new_view (priv->storage_set);
GTK_WIDGET_SET_FLAGS (priv->storage_set_view, GTK_CAN_FOCUS);
+ gtk_signal_connect (GTK_OBJECT (priv->storage_set_view),
+ "double_click", GTK_SIGNAL_FUNC (dbl_click_cb),
+ folder_selection_dialog);
g_assert (priv->allowed_types == NULL);
if (allowed_types != NULL) {