gnome-settings-daemon r448 - trunk/plugins/xrandr
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-settings-daemon r448 - trunk/plugins/xrandr
- Date: Sat, 16 Aug 2008 01:56:39 +0000 (UTC)
Author: federico
Date: Sat Aug 16 01:56:39 2008
New Revision: 448
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=448&view=rev
Log:
xrandr - Only display items for supported rotations
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/plugins/xrandr/gsd-xrandr-manager.c
Modified: trunk/plugins/xrandr/gsd-xrandr-manager.c
==============================================================================
--- trunk/plugins/xrandr/gsd-xrandr-manager.c (original)
+++ trunk/plugins/xrandr/gsd-xrandr-manager.c Sat Aug 16 01:56:39 2008
@@ -449,15 +449,18 @@
rot = rotations[i].rotation;
+ if ((allowed_rotations & rot) == 0) {
+ /* don't display items for rotations which are
+ * unavailable. Their availability is not under the
+ * user's control, anyway.
+ */
+ continue;
+ }
+
item = gtk_menu_item_new_with_label (_(rotations[i].name));
gtk_widget_show_all (item);
gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item);
- if ((allowed_rotations & rot) == 0) {
- gtk_widget_set_sensitive (item, FALSE);
- gtk_widget_set_tooltip_text (item, _("This rotation is not supported"));
- }
-
g_object_set_data (G_OBJECT (item), "output", output);
g_object_set_data (G_OBJECT (item), "rotation", GINT_TO_POINTER (rot));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]