[gnome-settings-daemon/randr-osd: 13/15] Don't generate a button for the current configuration
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/randr-osd: 13/15] Don't generate a button for the current configuration
- Date: Tue, 19 Jan 2010 23:35:52 +0000 (UTC)
commit 8fa29c0366d9ebcd5697ffe8f2cee187379116df
Author: Federico Mena Quintero <federico novell com>
Date: Tue Jan 19 16:26:21 2010 -0600
Don't generate a button for the current configuration
The current configuration is the first element in the stock_configs array,
and it is used just to see whether the state of the monitors is in sync
with gnome-settings-daemon's idea of the world.
Signed-off-by: Federico Mena Quintero <federico novell com>
plugins/xrandr/gsd-xrandr-manager.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index df55eb6..751304b 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1208,8 +1208,10 @@ create_osd_window (GsdXrandrManager *manager)
for (i = 0; priv->stock_configs[i]; i++) {
GtkWidget *button;
- button = make_button_for_stock_config (manager, priv->stock_configs[i]->type);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ if (priv->stock_configs[i]->type != STOCK_CONFIG_CURRENT) {
+ button = make_button_for_stock_config (manager, priv->stock_configs[i]->type);
+ gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
+ }
}
gtk_widget_show_all (priv->osd_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]