aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-12-02 11:23:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-12-02 11:23:57 +0800
commit9d77b85ae36094fd1a0b07be4ebb69e047c9cec1 (patch)
treebbbaa747e8cf40cb220d651d4b2fdd8159fae652 /shell/main.c
parent2a7bc6967326be929beb1e0d7a3ba091022d59e9 (diff)
downloadgsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.gz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.bz2
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.lz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.xz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.zst
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.zip
changed to use a gtkdialog instead of a gnome one.
2002-11-27 Not Zed <NotZed@Ximian.com> * main.c (show_development_warning): changed to use a gtkdialog instead of a gnome one. (warning_dialog_response_callback): clicked->response. * e-shell-folder-selection-dialog.c: Include gtk/gtkstock.h * e-shell-folder-creation-dialog.c: include gnome-dialog.h (dialog_response_cb): gtk_entry_get_text now returns const. Dont free result. * e-setup.c: include gnome-messagebox.h * *.c: (re)run fix.sh over all, for e_notice changes & pick up some deprecated functions. * e-shell-shared-folder-picker-dialog.c (shared_folder_discovery_callback): reformat e_notice call for script. * e-shell-offline-sync.c (impl_SyncFolderProgressListener_reportFailure): Fix e_notice call, we weren't passing type in. * e-shell-folder-commands.c (xfer_result_callback): changed around slightly to save some processing & allow a script to run. (e_shell_command_rename_folder): reformat e_notice call to help script. Include gnome-messagebox.h svn path=/trunk/; revision=18977
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/shell/main.c b/shell/main.c
index 1f98b2a7aa..64febd4fcd 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -39,6 +39,8 @@
#include <gtk/gtkmain.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkwindow.h>
+#include <gtk/gtkdialog.h>
+#include <gtk/gtkstock.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
@@ -163,7 +165,7 @@ shell_weak_notify (void *data,
/* Warning dialog to scare people off a little bit. */
static void
-warning_dialog_clicked_callback (GnomeDialog *dialog,
+warning_dialog_response_callback (GtkDialog *dialog,
int button_number,
void *data)
{
@@ -199,9 +201,9 @@ show_development_warning (GtkWindow *parent)
g_object_unref (client);
- warning_dialog = gnome_dialog_new ("Ximian Evolution " VERSION, GNOME_STOCK_BUTTON_OK, NULL);
- gtk_window_set_transient_for (GTK_WINDOW (warning_dialog), parent);
-
+ warning_dialog = gtk_dialog_new_with_buttons("Ximian Evolution " VERSION, parent,
+ GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
label = gtk_label_new (
/* xgettext:no-c-format */
_("Hi. Thanks for taking the time to download this preview release\n"
@@ -222,7 +224,7 @@ show_development_warning (GtkWindow *parent)
));
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
label, TRUE, TRUE, 4);
label = gtk_label_new (_("Thanks\n"
@@ -230,7 +232,7 @@ show_development_warning (GtkWindow *parent)
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_RIGHT);
gtk_misc_set_alignment(GTK_MISC(label), 1, .5);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
label, TRUE, TRUE, 0);
dont_bother_me_again_checkbox = gtk_check_button_new_with_label (_("Don't tell me again"));
@@ -239,13 +241,13 @@ show_development_warning (GtkWindow *parent)
alignment = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
gtk_container_add (GTK_CONTAINER (alignment), dont_bother_me_again_checkbox);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (warning_dialog)->vbox),
alignment, FALSE, FALSE, 0);
gtk_widget_show_all (warning_dialog);
- g_signal_connect (warning_dialog, "clicked",
- G_CALLBACK (warning_dialog_clicked_callback),
+ g_signal_connect (warning_dialog, "response",
+ G_CALLBACK (warning_dialog_response_callback),
dont_bother_me_again_checkbox);
}
@@ -355,7 +357,7 @@ idle_cb (void *data)
case E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER:
corba_shell = bonobo_activation_activate_from_id (E_SHELL_OAFIID, 0, NULL, &ev);
if (ev._major != CORBA_NO_EXCEPTION || corba_shell == CORBA_OBJECT_NIL) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Cannot access the Ximian Evolution shell."));
CORBA_exception_free (&ev);
bonobo_main_quit ();
@@ -364,7 +366,7 @@ idle_cb (void *data)
break;
default:
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Cannot initialize the Ximian Evolution shell: %s"),
e_shell_construct_result_to_string (result));
CORBA_exception_free (&ev);