[Goodies-commits] r6087 - in xfce4-screenshooter-plugin/trunk: . src
Jerome Guelfucci
jeromeg at xfce.org
Thu Nov 13 18:08:02 CET 2008
Author: jeromeg
Date: 2008-11-13 17:08:01 +0000 (Thu, 13 Nov 2008)
New Revision: 6087
Modified:
xfce4-screenshooter-plugin/trunk/ChangeLog
xfce4-screenshooter-plugin/trunk/src/main.c
Log:
Code cleanup in src/main.c
Modified: xfce4-screenshooter-plugin/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-13 00:41:30 UTC (rev 6086)
+++ xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-13 17:08:01 UTC (rev 6087)
@@ -1,3 +1,9 @@
+2008-11-12-jeromeg
+
+ * src/main.c:
+ - destroy the widget instead of hiding it.
+ - set the dialog window type hint.
+
2008-11-12 jeromeg
* lib/screenshooter-dialogs.c
Modified: xfce4-screenshooter-plugin/trunk/src/main.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/src/main.c 2008-11-13 00:41:30 UTC (rev 6086)
+++ xfce4-screenshooter-plugin/trunk/src/main.c 2008-11-13 17:08:01 UTC (rev 6087)
@@ -193,11 +193,14 @@
/* Set the dialog up */
dialog = screenshooter_dialog_new (sd, FALSE);
+ gtk_window_set_type_hint(GTK_WINDOW (dialog),
+ GDK_WINDOW_TYPE_HINT_NORMAL);
+
/* Run the dialog and destroy it, so that it's not grabbed in active
window mode */
response = gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_hide_all (dialog);
+ gtk_widget_destroy (dialog);
gdk_display_sync (display);
@@ -245,7 +248,6 @@
/* Save preferences */
screenshooter_write_rc_file (rc_file, sd);
- gtk_widget_destroy (dialog);
}
}
More information about the Goodies-commits
mailing list