aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-instance.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-17 15:59:50 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-17 15:59:50 +0800
commit1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7 (patch)
tree7e875ff20cbcd7a2592ea17ce00c42da9b853949 /widgets/menus/gal-view-instance.c
parent0c6abae8605045e79afba715f3725fd9d631f40d (diff)
downloadgsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar.gz
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar.bz2
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar.lz
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar.xz
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.tar.zst
gsoc2013-evolution-1a61aa98b3ab76b5cb3b00a44f53265fc51b00c7.zip
convert some GnomeDialog stuff to GtkDialog.
2002-11-16 Chris Toshok <toshok@ximian.com> * gal-view-instance.c: convert some GnomeDialog stuff to GtkDialog. * gal-view-instance-save-as-dialog.c: remove GnomeDialog references. * gal-view-new-dialog.c: same. svn path=/trunk/; revision=18813
Diffstat (limited to 'widgets/menus/gal-view-instance.c')
-rw-r--r--widgets/menus/gal-view-instance.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/widgets/menus/gal-view-instance.c b/widgets/menus/gal-view-instance.c
index 94b43eada6..f227a020fd 100644
--- a/widgets/menus/gal-view-instance.c
+++ b/widgets/menus/gal-view-instance.c
@@ -28,7 +28,6 @@
#include <string.h>
#include <libxml/parser.h>
#include <libgnome/gnome-util.h>
-#include <libgnomeui/gnome-dialog.h>
#include <gal/util/e-util.h>
#include <gal/util/e-xml-utils.h>
#include <gal/widgets/e-unicode.h>
@@ -399,20 +398,20 @@ gal_view_instance_set_custom_view (GalViewInstance *instance, GalView *view)
}
static void
-dialog_clicked(GtkWidget *dialog, int button, GalViewInstance *instance)
+dialog_response(GtkWidget *dialog, int id, GalViewInstance *instance)
{
- if (button == 0) {
+ if (id == GTK_RESPONSE_OK) {
gal_view_instance_save_as_dialog_save (GAL_VIEW_INSTANCE_SAVE_AS_DIALOG (dialog));
}
- gnome_dialog_close(GNOME_DIALOG(dialog));
+ gtk_widget_destroy (dialog);
}
void
gal_view_instance_save_as (GalViewInstance *instance)
{
GtkWidget *dialog = gal_view_instance_save_as_dialog_new(instance);
- g_signal_connect(dialog, "clicked",
- G_CALLBACK(dialog_clicked), instance);
+ g_signal_connect(dialog, "response",
+ G_CALLBACK(dialog_response), instance);
gtk_widget_show(dialog);
}
@@ -504,12 +503,12 @@ add_popup_menu_item (EPopupMenu *menu_item,
}
static void
-define_views_dialog_clicked(GtkWidget *dialog, int button, GalViewInstance *instance)
+define_views_dialog_response(GtkWidget *dialog, int id, GalViewInstance *instance)
{
- if (button == 0) {
+ if (id == GTK_RESPONSE_OK) {
gal_view_collection_save(instance->collection);
}
- gnome_dialog_close(GNOME_DIALOG(dialog));
+ gtk_widget_destroy (dialog);
}
static void
@@ -517,8 +516,8 @@ define_views_cb(GtkWidget *widget,
GalViewInstance *instance)
{
GtkWidget *dialog = gal_define_views_dialog_new(instance->collection);
- g_signal_connect(dialog, "clicked",
- G_CALLBACK(define_views_dialog_clicked), instance);
+ g_signal_connect(dialog, "response",
+ G_CALLBACK(define_views_dialog_response), instance);
gtk_widget_show(dialog);
}