[Goodies-commits] r6748 - in xfce4-notes-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Sun Feb 22 10:20:12 CET 2009
Author: mmassonnet
Date: 2009-02-22 09:20:12 +0000 (Sun, 22 Feb 2009)
New Revision: 6748
Modified:
xfce4-notes-plugin/trunk/ChangeLog
xfce4-notes-plugin/trunk/panel-plugin/settings-dialog.c
Log:
Set background color dialog transient+modal+centered
Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog 2009-02-22 09:15:38 UTC (rev 6747)
+++ xfce4-notes-plugin/trunk/ChangeLog 2009-02-22 09:20:12 UTC (rev 6748)
@@ -1,5 +1,11 @@
2009-02-22 Mike Massonnet <mmassonnet at xfce.org>
+Set background color dialog transient+modal+centered
+ * panel-plugin/settings-dialog.c(cb_background_changed):
+ - Fix the background color dialog WRT the settings dialog
+
+2009-02-22 Mike Massonnet <mmassonnet at xfce.org>
+
Fix GTK_CHECK_VERSION for gdk_color_to_string
* panel-plugin/color.[ch]:
- Testing !GTK_CHECK_VERSION is the valid check
Modified: xfce4-notes-plugin/trunk/panel-plugin/settings-dialog.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/settings-dialog.c 2009-02-22 09:15:38 UTC (rev 6747)
+++ xfce4-notes-plugin/trunk/panel-plugin/settings-dialog.c 2009-02-22 09:20:12 UTC (rev 6748)
@@ -314,6 +314,10 @@
else if (id == COMBOBOX_BACKGROUND_CUSTOM)
{
dialog = background_dialog_new ();
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (combobox))));
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT);
+
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
{
color = background_dialog_get_color (GTK_COLOR_SELECTION_DIALOG (dialog));
@@ -323,6 +327,7 @@
gtk_color_button_set_color (GTK_COLOR_BUTTON (color_button), &gdkcolor);
}
+
gtk_widget_destroy (dialog);
return;
}
More information about the Goodies-commits
mailing list