Index: plugins/groupwise-features/share-folder.c
===================================================================
--- plugins/groupwise-features/share-folder.c	(revision 35210)
+++ plugins/groupwise-features/share-folder.c	(working copy)
@@ -524,6 +524,7 @@ notification_clicked(GtkButton *button, 
 	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, 
 	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
Index: plugins/groupwise-features/ChangeLog
===================================================================
--- plugins/groupwise-features/ChangeLog	(revision 35210)
+++ plugins/groupwise-features/ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-03-18  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #511953
+
+	* share-folder.c: (notification_clicked): Create dialog properly.
+
 2008-02-18  Milan Crha  <mcrha@redhat.com>
 
 	** Part of fix for bug #515744
