gnome-settings-daemon r445 - trunk/plugins/xrandr
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-settings-daemon r445 - trunk/plugins/xrandr
- Date: Sat, 16 Aug 2008 01:56:01 +0000 (UTC)
Author: federico
Date: Sat Aug 16 01:56:01 2008
New Revision: 445
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=445&view=rev
Log:
xrandr - Stubs to add menu items for RANDR outputs
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:01 2008
@@ -207,6 +207,21 @@
}
static void
+add_menu_items_for_output (GsdXrandrManager *manager, GnomeOutputInfo *output)
+{
+}
+
+static void
+add_menu_items_for_outputs (GsdXrandrManager *manager)
+{
+ struct GsdXrandrManagerPrivate *priv = manager->priv;
+ int i;
+
+ for (i = 0; priv->configuration->outputs[i] != NULL; i++)
+ add_menu_items_for_output (manager, priv->configuration->outputs[i]);
+}
+
+static void
status_icon_popup_menu (GsdXrandrManager *manager, guint button, guint32 timestamp)
{
struct GsdXrandrManagerPrivate *priv = manager->priv;
@@ -222,10 +237,7 @@
g_assert (priv->popup_menu == NULL);
priv->popup_menu = gtk_menu_new ();
- item = gtk_menu_item_new_with_label (_("Screen Rotation"));
- gtk_widget_set_sensitive (item, FALSE);
- gtk_widget_show (item);
- gtk_menu_shell_append (GTK_MENU_SHELL (priv->popup_menu), item);
+ add_menu_items_for_outputs (manager);
item = gtk_separator_menu_item_new ();
gtk_widget_show (item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]