aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-03-27 19:21:44 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-03-27 19:21:44 +0800
commit107a40775f596fcd535880b8121ee36e4c1733c0 (patch)
tree3d9a63e9cbf7c4bed9498984a6b70d2b9ebb6be1
parent45f90d5e703ff66fb339db1d311af1802f547847 (diff)
downloadgsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar.gz
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar.bz2
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar.lz
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar.xz
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.tar.zst
gsoc2013-evolution-107a40775f596fcd535880b8121ee36e4c1733c0.zip
** Fix for bug #511953
2008-03-27 Milan Crha <mcrha@redhat.com> ** Fix for bug #511953 * share-folder.c: (notification_clicked): Create dialog properly. svn path=/trunk/; revision=35266
-rw-r--r--plugins/groupwise-features/ChangeLog6
-rw-r--r--plugins/groupwise-features/share-folder.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index 2cfb525dc0..cf7252392c 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,5 +1,11 @@
2008-03-27 Milan Crha <mcrha@redhat.com>
+ ** Fix for bug #511953
+
+ * share-folder.c: (notification_clicked): Create dialog properly.
+
+2008-03-27 Milan Crha <mcrha@redhat.com>
+
** Fix for bug #511950
* properties.glade: Do not force button/label sizes.
diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c
index fe4d469f36..b073b54f19 100644
--- a/plugins/groupwise-features/share-folder.c
+++ b/plugins/groupwise-features/share-folder.c
@@ -524,6 +524,7 @@ notification_clicked(GtkButton *button, ShareFolder *sf)
char *gladefile;
sf->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_type_hint (GTK_WINDOW (sf->window), GDK_WINDOW_TYPE_HINT_DIALOG);
gladefile = g_build_filename (EVOLUTION_GLADEDIR,
"properties.glade",
@@ -543,11 +544,10 @@ notification_clicked(GtkButton *button, ShareFolder *sf)
gtk_window_set_title (GTK_WINDOW (sf->window), "Custom Notification");
gtk_window_set_position (GTK_WINDOW (sf->window) , GTK_WIN_POS_CENTER_ALWAYS);
gtk_window_set_default_size (GTK_WINDOW (sf->window), 100, 200);
- gtk_widget_reparent (GTK_WIDGET (sf->window), GTK_WIDGET (sf->vbox));
- gtk_window_set_transient_for ((GtkWindow *)sf->window, GTK_WINDOW(sf->vbox));
+ gtk_window_set_transient_for ((GtkWindow *)sf->window, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sf->table))));
gtk_window_set_modal ((GtkWindow *)sf->window, TRUE);
- gtk_window_present ((GtkWindow *)sf->window);
gtk_widget_show_all (sf->window);
+ gtk_window_present ((GtkWindow *)sf->window);
}
static void