aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-15 08:26:42 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-15 08:26:42 +0800
commitb75c80d63f8aa474b8ba14318b8c89f2c13be845 (patch)
tree28d74222ebc5bb63ad63ea589d26ddca3253a452 /widgets/menus
parent8539e8dd1ae1f3965d6331f7665a8cda7ff66994 (diff)
downloadgsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar.gz
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar.bz2
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar.lz
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar.xz
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.tar.zst
gsoc2013-evolution-b75c80d63f8aa474b8ba14318b8c89f2c13be845.zip
use GtkDialog's ::response instead of GnomeDialog's ::clicked.
2002-11-14 Chris Toshok <toshok@ximian.com> * menus/gal-view-menus.c (define_views): use GtkDialog's ::response instead of GnomeDialog's ::clicked. (dialog_response): use response id's. (gvm_finalize): fix warning. svn path=/trunk/; revision=18768
Diffstat (limited to 'widgets/menus')
-rw-r--r--widgets/menus/gal-view-menus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index 0652131f3c..1091c251d2 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -149,7 +149,7 @@ gvm_finalize (GObject *object)
gal_view_menus_unmerge (gvm, NULL);
if (gvm->priv->define_views_dialog)
- g_object_weak_unref (gvm->priv->define_views_dialog, clear_define_views_dialog, gvm);
+ g_object_weak_unref (G_OBJECT (gvm->priv->define_views_dialog), clear_define_views_dialog, gvm);
g_free(gvm->priv);
@@ -208,12 +208,12 @@ gal_view_menus_construct (GalViewMenus *gvm,
}
static void
-dialog_clicked(GtkWidget *dialog, int button, GalViewMenus *menus)
+dialog_response(GtkWidget *dialog, int id, GalViewMenus *menus)
{
- if (button == 0) {
+ if (id == GTK_RESPONSE_OK) {
gal_view_collection_save(menus->priv->instance->collection);
}
- gnome_dialog_close(GNOME_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
}
static void
@@ -226,7 +226,7 @@ define_views(BonoboUIComponent *component,
} else {
GtkWidget *dialog = gal_define_views_dialog_new(menus->priv->instance->collection);
- g_signal_connect (dialog, "clicked", G_CALLBACK (dialog_clicked), menus);
+ g_signal_connect (dialog, "response", G_CALLBACK (dialog_response), menus);
menus->priv->define_views_dialog = dialog;
g_object_weak_ref (G_OBJECT (dialog), clear_define_views_dialog, menus);
gtk_widget_show(dialog);