gnome-control-center r8863 - trunk/capplets/display
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8863 - trunk/capplets/display
- Date: Sat, 16 Aug 2008 02:00:35 +0000 (UTC)
Author: federico
Date: Sat Aug 16 02:00:35 2008
New Revision: 8863
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8863&view=rev
Log:
Create a GnomeRRLabeler when getting a new screen configuration
Signed-off-by: Federico Mena Quintero <federico novell com>
Modified:
trunk/capplets/display/ChangeLog
trunk/capplets/display/xrandr-capplet.c
Modified: trunk/capplets/display/xrandr-capplet.c
==============================================================================
--- trunk/capplets/display/xrandr-capplet.c (original)
+++ trunk/capplets/display/xrandr-capplet.c Sat Aug 16 02:00:35 2008
@@ -28,6 +28,7 @@
#define GNOME_DESKTOP_USE_UNSTABLE_API
#include <libgnomeui/gnome-rr.h>
#include <libgnomeui/gnome-rr-config.h>
+#include <libgnomeui/gnome-rr-labeler.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <glib/gi18n.h>
@@ -40,6 +41,7 @@
{
GnomeRRScreen *screen;
GnomeRRConfig *current_configuration;
+ GnomeRRLabeler *labeler;
GnomeOutputInfo *current_output;
GtkWidget *dialog;
@@ -139,6 +141,13 @@
qsort (app->current_configuration->outputs, i, sizeof (GnomeOutputInfo *),
compare_outputs);
+ if (app->labeler) {
+ gnome_rr_labeler_hide (app->labeler);
+ g_object_unref (app->labeler);
+ }
+
+ app->labeler = gnome_rr_labeler_new (app->current_configuration);
+
#if 0
for (i = 0; app->current_configuration->outputs[i] != NULL; ++i)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]