[Xfce4-commits] <ristretto:master> Set default style to monitor_chooser widget
Stephan Arts
noreply at xfce.org
Thu Sep 15 00:18:03 CEST 2011
Updating branch refs/heads/master
to 1355e8ff7d20c0b8f278415c34596388d0f59e79 (commit)
from 83047c105b90fb810235704662b3d80453130082 (commit)
commit 1355e8ff7d20c0b8f278415c34596388d0f59e79
Author: Stephan Arts <stephan at xfce.org>
Date: Thu Sep 15 00:16:02 2011 +0200
Set default style to monitor_chooser widget
src/monitor_chooser.c | 4 +++-
src/xfce_wallpaper_manager.c | 5 +++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/monitor_chooser.c b/src/monitor_chooser.c
index cb3ab07..2e57447 100644
--- a/src/monitor_chooser.c
+++ b/src/monitor_chooser.c
@@ -628,12 +628,14 @@ rstto_monitor_chooser_set_style (
gint monitor_id,
RsttoMonitorStyle style )
{
+ GtkWidget *widget = GTK_WIDGET(chooser);
Monitor *monitor = g_slist_nth_data (chooser->priv->monitors, monitor_id);
g_return_val_if_fail (monitor != NULL, FALSE);
if ( NULL != monitor )
{
monitor->style = style;
- rstto_monitor_chooser_paint (GTK_WIDGET(chooser));
+ if (GTK_WIDGET_REALIZED (widget))
+ rstto_monitor_chooser_paint (GTK_WIDGET(chooser));
return TRUE;
}
return FALSE;
diff --git a/src/xfce_wallpaper_manager.c b/src/xfce_wallpaper_manager.c
index cf50036..9eb490b 100644
--- a/src/xfce_wallpaper_manager.c
+++ b/src/xfce_wallpaper_manager.c
@@ -164,6 +164,11 @@ rstto_xfce_wallpaper_manager_configure_dialog_run (
500,
NULL),
NULL);
+ rstto_monitor_chooser_set_style (
+ RSTTO_MONITOR_CHOOSER(manager->priv->monitor_chooser),
+ 0,
+ MONITOR_STYLE_SCALED);
+
gtk_box_pack_start (
GTK_BOX (vbox),
More information about the Xfce4-commits
mailing list