OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-settings-daemon?expand=0&rev=26
This commit is contained in:
parent
c9b31942e5
commit
f2d638bcf9
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:98377ed6d7c4abb75b746570f07e00a4346ba6f5924574130211beca764bb99d
|
|
||||||
size 1119609
|
|
3
gnome-settings-daemon-2.25.3.tar.bz2
Normal file
3
gnome-settings-daemon-2.25.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0e3267e8dcc1b1f1e33f022baa1b6744fef193cc0fb737363bb6344c4dda01eb
|
||||||
|
size 1112524
|
@ -10,11 +10,11 @@
|
|||||||
plugins/apport/gsd-apport-plugin.h | 57 ++++++
|
plugins/apport/gsd-apport-plugin.h | 57 ++++++
|
||||||
9 files changed, 503 insertions(+)
|
9 files changed, 503 insertions(+)
|
||||||
|
|
||||||
Index: b/configure.ac
|
Index: gnome-settings-daemon-2.25.3/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/configure.ac
|
--- gnome-settings-daemon-2.25.3.orig/configure.ac
|
||||||
+++ b/configure.ac
|
+++ gnome-settings-daemon-2.25.3/configure.ac
|
||||||
@@ -449,6 +449,7 @@ Makefile
|
@@ -394,6 +394,7 @@ Makefile
|
||||||
gnome-settings-daemon/Makefile
|
gnome-settings-daemon/Makefile
|
||||||
plugins/Makefile
|
plugins/Makefile
|
||||||
plugins/a11y-keyboard/Makefile
|
plugins/a11y-keyboard/Makefile
|
||||||
@ -22,16 +22,14 @@ Index: b/configure.ac
|
|||||||
plugins/background/Makefile
|
plugins/background/Makefile
|
||||||
plugins/clipboard/Makefile
|
plugins/clipboard/Makefile
|
||||||
plugins/common/Makefile
|
plugins/common/Makefile
|
||||||
Index: b/data/gnome-settings-daemon.schemas.in
|
Index: gnome-settings-daemon-2.25.3/data/gnome-settings-daemon.schemas.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/data/gnome-settings-daemon.schemas.in
|
--- gnome-settings-daemon-2.25.3.orig/data/gnome-settings-daemon.schemas.in
|
||||||
+++ b/data/gnome-settings-daemon.schemas.in
|
+++ gnome-settings-daemon-2.25.3/data/gnome-settings-daemon.schemas.in
|
||||||
@@ -24,6 +24,29 @@
|
@@ -26,6 +26,29 @@
|
||||||
<long></long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
</schema>
|
||||||
+
|
|
||||||
+ <schema>
|
<schema>
|
||||||
+ <key>/schemas/apps/gnome_settings_daemon/plugins/apport/active</key>
|
+ <key>/schemas/apps/gnome_settings_daemon/plugins/apport/active</key>
|
||||||
+ <applyto>/apps/gnome_settings_daemon/plugins/apport/active</applyto>
|
+ <applyto>/apps/gnome_settings_daemon/plugins/apport/active</applyto>
|
||||||
+ <owner>gnome-settings-daemon</owner>
|
+ <owner>gnome-settings-daemon</owner>
|
||||||
@ -53,13 +51,15 @@ Index: b/data/gnome-settings-daemon.schemas.in
|
|||||||
+ <long></long>
|
+ <long></long>
|
||||||
+ </locale>
|
+ </locale>
|
||||||
+ </schema>
|
+ </schema>
|
||||||
|
+
|
||||||
<schema>
|
+ <schema>
|
||||||
<key>/schemas/apps/gnome_settings_daemon/plugins/background/active</key>
|
<key>/schemas/apps/gnome_settings_daemon/plugins/background/active</key>
|
||||||
Index: b/plugins/Makefile.am
|
<applyto>/apps/gnome_settings_daemon/plugins/background/active</applyto>
|
||||||
|
<owner>gnome-settings-daemon</owner>
|
||||||
|
Index: gnome-settings-daemon-2.25.3/plugins/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/plugins/Makefile.am
|
--- gnome-settings-daemon-2.25.3.orig/plugins/Makefile.am
|
||||||
+++ b/plugins/Makefile.am
|
+++ gnome-settings-daemon-2.25.3/plugins/Makefile.am
|
||||||
@@ -3,6 +3,7 @@ NULL =
|
@@ -3,6 +3,7 @@ NULL =
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
common \
|
common \
|
||||||
@ -68,10 +68,10 @@ Index: b/plugins/Makefile.am
|
|||||||
background \
|
background \
|
||||||
clipboard \
|
clipboard \
|
||||||
dummy \
|
dummy \
|
||||||
Index: b/plugins/apport/Makefile.am
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/Makefile.am
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/Makefile.am
|
||||||
@@ -0,0 +1,32 @@
|
@@ -0,0 +1,32 @@
|
||||||
+plugin_LTLIBRARIES = libapport.la
|
+plugin_LTLIBRARIES = libapport.la
|
||||||
+
|
+
|
||||||
@ -105,10 +105,10 @@ Index: b/plugins/apport/Makefile.am
|
|||||||
+DISTCLEANFILES = (plugin_DATA)
|
+DISTCLEANFILES = (plugin_DATA)
|
||||||
+
|
+
|
||||||
+@GSD_INTLTOOL_PLUGIN_RULE@
|
+@GSD_INTLTOOL_PLUGIN_RULE@
|
||||||
Index: b/plugins/apport/apport.gnome-settings-plugin.in
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/apport.gnome-settings-plugin.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/apport.gnome-settings-plugin.in
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/apport.gnome-settings-plugin.in
|
||||||
@@ -0,0 +1,8 @@
|
@@ -0,0 +1,8 @@
|
||||||
+[GNOME Settings Plugin]
|
+[GNOME Settings Plugin]
|
||||||
+Module=apport
|
+Module=apport
|
||||||
@ -118,11 +118,11 @@ Index: b/plugins/apport/apport.gnome-settings-plugin.in
|
|||||||
+Authors=Nikolay Derkach
|
+Authors=Nikolay Derkach
|
||||||
+Copyright=Copyright © 2008 Nikolay Derkach
|
+Copyright=Copyright © 2008 Nikolay Derkach
|
||||||
+Website=
|
+Website=
|
||||||
Index: b/plugins/apport/gsd-apport-manager.c
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-manager.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/gsd-apport-manager.c
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-manager.c
|
||||||
@@ -0,0 +1,219 @@
|
@@ -0,0 +1,220 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (C) 2008 Nikolay Derkach <nderkach@gmail.com>
|
+ * Copyright (C) 2008 Nikolay Derkach <nderkach@gmail.com>
|
||||||
+ *
|
+ *
|
||||||
@ -144,8 +144,9 @@ Index: b/plugins/apport/gsd-apport-manager.c
|
|||||||
+
|
+
|
||||||
+/* Some code was taken from update-notifier */
|
+/* Some code was taken from update-notifier */
|
||||||
+
|
+
|
||||||
|
+#include <glib/gi18n.h>
|
||||||
+#include <gio/gio.h>
|
+#include <gio/gio.h>
|
||||||
+#include <gnome.h>
|
+#include <gtk/gtk.h>
|
||||||
+#include <dbus/dbus.h>
|
+#include <dbus/dbus.h>
|
||||||
+#include <dbus/dbus-glib-lowlevel.h>
|
+#include <dbus/dbus-glib-lowlevel.h>
|
||||||
+
|
+
|
||||||
@ -342,10 +343,10 @@ Index: b/plugins/apport/gsd-apport-manager.c
|
|||||||
+
|
+
|
||||||
+ return GSD_APPORT_MANAGER (manager_object);
|
+ return GSD_APPORT_MANAGER (manager_object);
|
||||||
+}
|
+}
|
||||||
Index: b/plugins/apport/gsd-apport-manager.h
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-manager.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/gsd-apport-manager.h
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-manager.h
|
||||||
@@ -0,0 +1,58 @@
|
@@ -0,0 +1,58 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -405,10 +406,10 @@ Index: b/plugins/apport/gsd-apport-manager.h
|
|||||||
+G_END_DECLS
|
+G_END_DECLS
|
||||||
+
|
+
|
||||||
+#endif /* __GSD_APPORT_MANAGER_H */
|
+#endif /* __GSD_APPORT_MANAGER_H */
|
||||||
Index: b/plugins/apport/gsd-apport-plugin.c
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-plugin.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/gsd-apport-plugin.c
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-plugin.c
|
||||||
@@ -0,0 +1,104 @@
|
@@ -0,0 +1,104 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -514,10 +515,10 @@ Index: b/plugins/apport/gsd-apport-plugin.c
|
|||||||
+
|
+
|
||||||
+ g_type_class_add_private (klass, sizeof (GsdApportPluginPrivate));
|
+ g_type_class_add_private (klass, sizeof (GsdApportPluginPrivate));
|
||||||
+}
|
+}
|
||||||
Index: b/plugins/apport/gsd-apport-plugin.h
|
Index: gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-plugin.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/apport/gsd-apport-plugin.h
|
+++ gnome-settings-daemon-2.25.3/plugins/apport/gsd-apport-plugin.h
|
||||||
@@ -0,0 +1,57 @@
|
@@ -0,0 +1,57 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
|
@ -1,910 +0,0 @@
|
|||||||
diff --git a/ChangeLog b/ChangeLog
|
|
||||||
index dc3cf82..4423ee2 100644
|
|
||||||
--- a/ChangeLog
|
|
||||||
+++ b/ChangeLog
|
|
||||||
@@ -1,3 +1,65 @@
|
|
||||||
+2009-01-14 Federico Mena Quintero <federico@novell.com>
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c (gsd_xrandr_manager_start):
|
|
||||||
+ If there was no file with a stored configuration, don't pop up an
|
|
||||||
+ error message --- this is not an error when the daemon starts up.
|
|
||||||
+ Fixes https://bugzilla.novell.com/show_bug.cgi?id=465968
|
|
||||||
+
|
|
||||||
+2008-12-08 Jens Granseuer <jensgr@gmx.net>
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c: (error_message): make libnotify
|
|
||||||
+ optional again (bug #563226)
|
|
||||||
+ (handle_fn_f7): fix memory leak, use g_debug instead of g_print
|
|
||||||
+
|
|
||||||
+2008-12-02 Federico Mena Quintero <federico@novell.com>
|
|
||||||
+
|
|
||||||
+ Use a DBus interface to tell the XRANDR manager to apply the
|
|
||||||
+ stored configuration, instead of an X client message, so that we
|
|
||||||
+ can pass errors back to the caller.
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.xml: Trivial DBus interface to
|
|
||||||
+ tell the XRANDR manager to apply the stored configuration.
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c
|
|
||||||
+ (gsd_xrandr_manager_apply_configuration): Moved from
|
|
||||||
+ on_client_message(). Now we are a DBus-Glib method, so that we
|
|
||||||
+ can pass back errors to the remote caller.
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/Makefile.am: Add the machinery to generate DBus
|
|
||||||
+ glue.
|
|
||||||
+
|
|
||||||
+2008-12-02 Federico Mena Quintero <federico@novell.com>
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c (error_message): Renamed
|
|
||||||
+ from error_dialog(); use libnotify instead of ugly dialogs for
|
|
||||||
+ error messages.
|
|
||||||
+ (gsd_xrandr_manager_start): Proxy the error from
|
|
||||||
+ gnome_rr_screen_new() to our caller.
|
|
||||||
+ (gsd_xrandr_manager_start): Display an error if we cannot apply
|
|
||||||
+ the initially-loaded configuration.
|
|
||||||
+ (generate_fn_f7_configs, get_allowed_rotations_for_output): Pass
|
|
||||||
+ GError arguments to the gnome_rr_*() functions.
|
|
||||||
+ (handle_fn_f7): Display an error if we cannot refresh the screen
|
|
||||||
+ configuration or apply the new one.
|
|
||||||
+ (output_rotation_item_activate_cb): Display an error if the
|
|
||||||
+ rotation cannot be applied.
|
|
||||||
+
|
|
||||||
+Tue Dec 2 15:37:21 2008 Søren Sandmann <sandmann@redhat.com>
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c: Add support for fn-F7 type
|
|
||||||
+ keys.
|
|
||||||
+
|
|
||||||
+2008-10-04 Jens Granseuer <jensgr@gmx.net>
|
|
||||||
+
|
|
||||||
+ Merged from trunk.
|
|
||||||
+
|
|
||||||
+ Patch by: Eric Piel <e.a.b.piel@tudelft.nl>
|
|
||||||
+
|
|
||||||
+ * plugins/xrandr/gsd-xrandr-manager.c:
|
|
||||||
+ (output_rotation_item_activate_cb): ignore the "activate" signal for
|
|
||||||
+ deselected items so that the rotation setting doesn't reset when the
|
|
||||||
+ systray menu is opened (bug #554951)
|
|
||||||
+
|
|
||||||
==================== 2.24.0 ====================
|
|
||||||
|
|
||||||
2008-09-23 Rodrigo Moya <rodrigo@gnome-db.org>
|
|
||||||
diff --git a/plugins/xrandr/Makefile.am b/plugins/xrandr/Makefile.am
|
|
||||||
index 54eda77..78637e6 100644
|
|
||||||
--- a/plugins/xrandr/Makefile.am
|
|
||||||
+++ b/plugins/xrandr/Makefile.am
|
|
||||||
@@ -1,6 +1,9 @@
|
|
||||||
icondir = $(datadir)/icons/hicolor
|
|
||||||
context = apps
|
|
||||||
|
|
||||||
+BUILT_SOURCES = \
|
|
||||||
+ gsd-xrandr-manager-glue.h
|
|
||||||
+
|
|
||||||
ICON_FILES = \
|
|
||||||
gsd-xrandr-16.png \
|
|
||||||
gsd-xrandr-22.png \
|
|
||||||
@@ -30,35 +33,43 @@ uninstall-local:
|
|
||||||
plugin_LTLIBRARIES = \
|
|
||||||
libxrandr.la
|
|
||||||
|
|
||||||
+gsd-xrandr-manager-glue.h: gsd-xrandr-manager.xml Makefile
|
|
||||||
+ dbus-binding-tool --prefix=gsd_xrandr_manager --mode=glib-server $< > xgen-$(@F) \
|
|
||||||
+ && ( cmp -s xgen-$(@F) $@ || cp xgen-$(@F) $@ ) \
|
|
||||||
+ && rm -f xgen-$(@F)
|
|
||||||
+
|
|
||||||
libxrandr_la_SOURCES = \
|
|
||||||
+ $(BUILT_SOURCES) \
|
|
||||||
gsd-xrandr-plugin.h \
|
|
||||||
gsd-xrandr-plugin.c \
|
|
||||||
gsd-xrandr-manager.h \
|
|
||||||
gsd-xrandr-manager.c
|
|
||||||
|
|
||||||
-libxrandr_la_CPPFLAGS = \
|
|
||||||
- -I$(top_srcdir)/gnome-settings-daemon \
|
|
||||||
- -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
|
|
||||||
+libxrandr_la_CPPFLAGS = \
|
|
||||||
+ -I$(top_srcdir)/gnome-settings-daemon \
|
|
||||||
+ -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
|
|
||||||
$(AM_CPPFLAGS)
|
|
||||||
|
|
||||||
-libxrandr_la_CFLAGS = \
|
|
||||||
+libxrandr_la_CFLAGS = \
|
|
||||||
$(SETTINGS_PLUGIN_CFLAGS) \
|
|
||||||
+ $(LIBNOTIFY_CFLAGS) \
|
|
||||||
$(AM_CFLAGS)
|
|
||||||
|
|
||||||
-libxrandr_la_LDFLAGS = \
|
|
||||||
+libxrandr_la_LDFLAGS = \
|
|
||||||
$(GSD_PLUGIN_LDFLAGS)
|
|
||||||
|
|
||||||
-libxrandr_la_LIBADD = \
|
|
||||||
- $(SETTINGS_PLUGIN_LIBS) \
|
|
||||||
+libxrandr_la_LIBADD = \
|
|
||||||
+ $(SETTINGS_PLUGIN_LIBS) \
|
|
||||||
+ $(LIBNOTIFY_LIBS) \
|
|
||||||
$(RANDR_LIBS)
|
|
||||||
|
|
||||||
-plugin_in_files = \
|
|
||||||
+plugin_in_files = \
|
|
||||||
xrandr.gnome-settings-plugin.in
|
|
||||||
|
|
||||||
plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
|
|
||||||
|
|
||||||
-EXTRA_DIST = $(plugin_in_files) $(ICON_FILES)
|
|
||||||
-CLEANFILES = $(plugin_DATA)
|
|
||||||
+EXTRA_DIST = $(plugin_in_files) $(ICON_FILES) gsd-xrandr-manager.xml
|
|
||||||
+CLEANFILES = $(plugin_DATA) $(BUILT_SOURCES)
|
|
||||||
DISTCLEANFILES = $(plugin_DATA)
|
|
||||||
|
|
||||||
@GSD_INTLTOOL_PLUGIN_RULE@
|
|
||||||
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
|
|
||||||
index 4d8ce2f..fcd70c1 100644
|
|
||||||
--- a/plugins/xrandr/gsd-xrandr-manager.c
|
|
||||||
+++ b/plugins/xrandr/gsd-xrandr-manager.c
|
|
||||||
@@ -37,6 +37,7 @@
|
|
||||||
#include <gdk/gdkx.h>
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
#include <gconf/gconf-client.h>
|
|
||||||
+#include <dbus/dbus-glib.h>
|
|
||||||
|
|
||||||
#define GNOME_DESKTOP_USE_UNSTABLE_API
|
|
||||||
|
|
||||||
@@ -48,6 +49,10 @@
|
|
||||||
#include <X11/extensions/Xrandr.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef HAVE_LIBNOTIFY
|
|
||||||
+#include <libnotify/notify.h>
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#include "gnome-settings-profile.h"
|
|
||||||
#include "gsd-xrandr-manager.h"
|
|
||||||
|
|
||||||
@@ -68,13 +73,19 @@
|
|
||||||
/* executable of the control center's display configuration capplet */
|
|
||||||
#define GSD_XRANDR_DISPLAY_CAPPLET "gnome-display-properties"
|
|
||||||
|
|
||||||
+#define GSD_DBUS_PATH "/org/gnome/SettingsDaemon"
|
|
||||||
+#define GSD_DBUS_NAME "org.gnome.SettingsDaemon"
|
|
||||||
+#define GSD_XRANDR_DBUS_PATH GSD_DBUS_PATH "/XRANDR"
|
|
||||||
+#define GSD_XRANDR_DBUS_NAME GSD_DBUS_NAME ".XRANDR"
|
|
||||||
+
|
|
||||||
struct GsdXrandrManagerPrivate
|
|
||||||
{
|
|
||||||
+ DBusGConnection *dbus_connection;
|
|
||||||
+
|
|
||||||
/* Key code of the fn-F7 video key (XF86Display) */
|
|
||||||
guint keycode;
|
|
||||||
GnomeRRScreen *rw_screen;
|
|
||||||
gboolean running;
|
|
||||||
- gboolean client_filter_set;
|
|
||||||
|
|
||||||
GtkStatusIcon *status_icon;
|
|
||||||
GtkWidget *popup_menu;
|
|
||||||
@@ -82,6 +93,10 @@ struct GsdXrandrManagerPrivate
|
|
||||||
GnomeRRLabeler *labeler;
|
|
||||||
GConfClient *client;
|
|
||||||
int notify_id;
|
|
||||||
+
|
|
||||||
+ /* fn-F7 status */
|
|
||||||
+ int current_fn_f7_config; /* -1 if no configs */
|
|
||||||
+ GnomeRRConfig **fn_f7_configs; /* NULL terminated, NULL if there are no configs */
|
|
||||||
};
|
|
||||||
|
|
||||||
static void gsd_xrandr_manager_class_init (GsdXrandrManagerClass *klass);
|
|
||||||
@@ -93,38 +108,472 @@ G_DEFINE_TYPE (GsdXrandrManager, gsd_xrandr_manager, G_TYPE_OBJECT)
|
|
||||||
static gpointer manager_object = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
-static GdkAtom
|
|
||||||
-gnome_randr_atom (void)
|
|
||||||
+/* DBus method; see gsd-xrandr-manager.xml for the interface definition */
|
|
||||||
+static gboolean
|
|
||||||
+gsd_xrandr_manager_apply_configuration (GsdXrandrManager *manager,
|
|
||||||
+ GError **error)
|
|
||||||
{
|
|
||||||
- return gdk_atom_intern ("_GNOME_RANDR_ATOM", FALSE);
|
|
||||||
+ GnomeRRScreen *screen = manager->priv->rw_screen;
|
|
||||||
+
|
|
||||||
+ return gnome_rr_config_apply_stored (screen, error);
|
|
||||||
}
|
|
||||||
+/* We include this after the definition of gsd_xrandr_manager_apply_configuration() so the prototype will already exist */
|
|
||||||
+#include "gsd-xrandr-manager-glue.h"
|
|
||||||
|
|
||||||
-static Atom
|
|
||||||
-gnome_randr_xatom (void)
|
|
||||||
+static gboolean
|
|
||||||
+is_laptop (GnomeOutputInfo *output)
|
|
||||||
{
|
|
||||||
- return gdk_x11_atom_to_xatom (gnome_randr_atom());
|
|
||||||
+ const char *output_name = output->name;
|
|
||||||
+
|
|
||||||
+ if (output->connected && output_name &&
|
|
||||||
+ (strstr ("lvds", output_name) ||
|
|
||||||
+ strstr ("LVDS", output_name) ||
|
|
||||||
+ strstr ("Lvds", output_name)))
|
|
||||||
+ {
|
|
||||||
+ return TRUE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
-static GdkFilterReturn
|
|
||||||
-on_client_message (GdkXEvent *xevent,
|
|
||||||
- GdkEvent *event,
|
|
||||||
- gpointer data)
|
|
||||||
+static gboolean
|
|
||||||
+get_clone_size (GnomeRRScreen *screen, int *width, int *height)
|
|
||||||
{
|
|
||||||
- GsdXrandrManager *manager = GSD_XRANDR_MANAGER (data);
|
|
||||||
- GnomeRRScreen *screen = manager->priv->rw_screen;
|
|
||||||
- XEvent *ev = (XEvent *)xevent;
|
|
||||||
+ GnomeRRMode **modes = gnome_rr_screen_list_clone_modes (screen);
|
|
||||||
+ int best_w, best_h;
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ best_w = 0;
|
|
||||||
+ best_h = 0;
|
|
||||||
|
|
||||||
- if (manager->priv->running &&
|
|
||||||
- ev->type == ClientMessage &&
|
|
||||||
- ev->xclient.message_type == gnome_randr_xatom ()) {
|
|
||||||
+ for (i = 0; modes[i] != NULL; ++i) {
|
|
||||||
+ GnomeRRMode *mode = modes[i];
|
|
||||||
+ int w, h;
|
|
||||||
|
|
||||||
- gnome_rr_config_apply_stored (screen);
|
|
||||||
+ w = gnome_rr_mode_get_width (mode);
|
|
||||||
+ h = gnome_rr_mode_get_height (mode);
|
|
||||||
|
|
||||||
- return GDK_FILTER_REMOVE;
|
|
||||||
+ if (w * h > best_w * best_h) {
|
|
||||||
+ best_w = w;
|
|
||||||
+ best_h = h;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
- /* Pass the event on to GTK+ */
|
|
||||||
- return GDK_FILTER_CONTINUE;
|
|
||||||
+ if (best_w > 0 && best_h > 0) {
|
|
||||||
+ if (width)
|
|
||||||
+ *width = best_w;
|
|
||||||
+ if (height)
|
|
||||||
+ *height = best_h;
|
|
||||||
+
|
|
||||||
+ return TRUE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return FALSE;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+print_output (GnomeOutputInfo *info)
|
|
||||||
+{
|
|
||||||
+ g_print (" Output: %s attached to %s\n", info->display_name, info->name);
|
|
||||||
+ g_print (" status: %s\n", info->on ? "on" : "off");
|
|
||||||
+ g_print (" width: %d\n", info->width);
|
|
||||||
+ g_print (" height: %d\n", info->height);
|
|
||||||
+ g_print (" rate: %d\n", info->rate);
|
|
||||||
+ g_print (" position: %d %d\n", info->x, info->y);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+print_configuration (GnomeRRConfig *config, const char *header)
|
|
||||||
+{
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ g_print ("=== %s Configuration ===\n", header);
|
|
||||||
+ if (!config) {
|
|
||||||
+ g_print (" none\n");
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ for (i = 0; config->outputs[i] != NULL; ++i)
|
|
||||||
+ print_output (config->outputs[i]);
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static GnomeRRConfig *
|
|
||||||
+make_clone_setup (GnomeRRScreen *screen)
|
|
||||||
+{
|
|
||||||
+ GnomeRRConfig *result;
|
|
||||||
+ int width, height;
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ if (!get_clone_size (screen, &width, &height))
|
|
||||||
+ return NULL;
|
|
||||||
+
|
|
||||||
+ result = gnome_rr_config_new_current (screen);
|
|
||||||
+
|
|
||||||
+ for (i = 0; result->outputs[i] != NULL; ++i) {
|
|
||||||
+ GnomeOutputInfo *info = result->outputs[i];
|
|
||||||
+
|
|
||||||
+ info->on = FALSE;
|
|
||||||
+ if (info->connected) {
|
|
||||||
+ GnomeRROutput *output =
|
|
||||||
+ gnome_rr_screen_get_output_by_name (screen, info->name);
|
|
||||||
+ GnomeRRMode **modes = gnome_rr_output_list_modes (output);
|
|
||||||
+ int j;
|
|
||||||
+ int best_rate = 0;
|
|
||||||
+
|
|
||||||
+ for (j = 0; modes[j] != NULL; ++j) {
|
|
||||||
+ GnomeRRMode *mode = modes[j];
|
|
||||||
+ int w, h;
|
|
||||||
+
|
|
||||||
+ w = gnome_rr_mode_get_width (mode);
|
|
||||||
+ h = gnome_rr_mode_get_height (mode);
|
|
||||||
+
|
|
||||||
+ if (w == width && h == height) {
|
|
||||||
+ int r = gnome_rr_mode_get_freq (mode);
|
|
||||||
+ if (r > best_rate)
|
|
||||||
+ best_rate = r;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (best_rate > 0) {
|
|
||||||
+ info->on = TRUE;
|
|
||||||
+ info->width = width;
|
|
||||||
+ info->height = height;
|
|
||||||
+ info->rate = best_rate;
|
|
||||||
+ info->rotation = GNOME_RR_ROTATION_0;
|
|
||||||
+ info->x = 0;
|
|
||||||
+ info->y = 0;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ print_configuration (result, "clone setup");
|
|
||||||
+
|
|
||||||
+ return result;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static gboolean
|
|
||||||
+turn_on (GnomeRRScreen *screen,
|
|
||||||
+ GnomeOutputInfo *info,
|
|
||||||
+ int x, int y)
|
|
||||||
+{
|
|
||||||
+ GnomeRROutput *output =
|
|
||||||
+ gnome_rr_screen_get_output_by_name (screen, info->name);
|
|
||||||
+ GnomeRRMode *mode = gnome_rr_output_get_preferred_mode (output);
|
|
||||||
+
|
|
||||||
+ if (mode) {
|
|
||||||
+ info->on = TRUE;
|
|
||||||
+ info->x = x;
|
|
||||||
+ info->y = y;
|
|
||||||
+ info->width = gnome_rr_mode_get_width (mode);
|
|
||||||
+ info->height = gnome_rr_mode_get_height (mode);
|
|
||||||
+ info->rotation = GNOME_RR_ROTATION_0;
|
|
||||||
+ info->rate = gnome_rr_mode_get_freq (mode);
|
|
||||||
+
|
|
||||||
+ return TRUE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return FALSE;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static GnomeRRConfig *
|
|
||||||
+make_laptop_setup (GnomeRRScreen *screen)
|
|
||||||
+{
|
|
||||||
+ /* Turn on the laptop, disable everything else */
|
|
||||||
+ GnomeRRConfig *result = gnome_rr_config_new_current (screen);
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ for (i = 0; result->outputs[i] != NULL; ++i) {
|
|
||||||
+ GnomeOutputInfo *info = result->outputs[i];
|
|
||||||
+
|
|
||||||
+ if (is_laptop (info)) {
|
|
||||||
+ if (!info->on) {
|
|
||||||
+ if (!turn_on (screen, info, 0, 0)) {
|
|
||||||
+ gnome_rr_config_free (result);
|
|
||||||
+ result = NULL;
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ else {
|
|
||||||
+ info->on = FALSE;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ print_configuration (result, "Laptop setup");
|
|
||||||
+
|
|
||||||
+ /* FIXME - Maybe we should return NULL if there is more than
|
|
||||||
+ * one connected "laptop" screen?
|
|
||||||
+ */
|
|
||||||
+ return result;
|
|
||||||
+
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static GnomeRRConfig *
|
|
||||||
+make_xinerama_setup (GnomeRRScreen *screen)
|
|
||||||
+{
|
|
||||||
+ /* Turn on everything that has a preferred mode, and
|
|
||||||
+ * position it from left to right
|
|
||||||
+ */
|
|
||||||
+ GnomeRRConfig *result = gnome_rr_config_new_current (screen);
|
|
||||||
+ int i;
|
|
||||||
+ int x;
|
|
||||||
+
|
|
||||||
+ x = 0;
|
|
||||||
+ for (i = 0; result->outputs[i] != NULL; ++i) {
|
|
||||||
+ GnomeOutputInfo *info = result->outputs[i];
|
|
||||||
+
|
|
||||||
+ if (is_laptop (info)) {
|
|
||||||
+ if (info->on || turn_on (screen, info, x, 0)) {
|
|
||||||
+ x += info->width;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ for (i = 0; result->outputs[i] != NULL; ++i) {
|
|
||||||
+ GnomeOutputInfo *info = result->outputs[i];
|
|
||||||
+
|
|
||||||
+ if (info->connected && !is_laptop (info)) {
|
|
||||||
+ if (info->on || turn_on (screen, info, x, 0)) {
|
|
||||||
+ x += info->width;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ print_configuration (result, "xinerama setup");
|
|
||||||
+
|
|
||||||
+ return result;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static GnomeRRConfig *
|
|
||||||
+make_other_setup (GnomeRRScreen *screen)
|
|
||||||
+{
|
|
||||||
+ /* Turn off all laptops, and make all external monitors clone
|
|
||||||
+ * from (0, 0)
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+ GnomeRRConfig *result = gnome_rr_config_new_current (screen);
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ for (i = 0; result->outputs[i] != NULL; ++i) {
|
|
||||||
+ GnomeOutputInfo *info = result->outputs[i];
|
|
||||||
+
|
|
||||||
+ if (is_laptop (info)) {
|
|
||||||
+ info->on = FALSE;
|
|
||||||
+ }
|
|
||||||
+ else {
|
|
||||||
+ if (info->connected && !info->on) {
|
|
||||||
+ turn_on (screen, info, 0, 0);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ print_configuration (result, "other setup");
|
|
||||||
+
|
|
||||||
+ return result;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static GPtrArray *
|
|
||||||
+sanitize (GPtrArray *array)
|
|
||||||
+{
|
|
||||||
+ int i;
|
|
||||||
+ GPtrArray *new;
|
|
||||||
+
|
|
||||||
+ g_print ("before sanitizing\n");
|
|
||||||
+
|
|
||||||
+ for (i = 0; i < array->len; ++i) {
|
|
||||||
+ if (array->pdata[i]) {
|
|
||||||
+ print_configuration (array->pdata[i], "before");
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /* Remove configurations that are duplicates of
|
|
||||||
+ * configurations earlier in the cycle
|
|
||||||
+ */
|
|
||||||
+ for (i = 0; i < array->len; ++i) {
|
|
||||||
+ int j;
|
|
||||||
+
|
|
||||||
+ for (j = 0; j < i; ++j) {
|
|
||||||
+ GnomeRRConfig *this = array->pdata[j];
|
|
||||||
+ GnomeRRConfig *other = array->pdata[i];
|
|
||||||
+
|
|
||||||
+ if (this && other && gnome_rr_config_equal (this, other)) {
|
|
||||||
+ g_print ("removing duplicate configuration\n");
|
|
||||||
+ gnome_rr_config_free (this);
|
|
||||||
+ array->pdata[j] = NULL;
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ for (i = 0; i < array->len; ++i) {
|
|
||||||
+ GnomeRRConfig *config = array->pdata[i];
|
|
||||||
+
|
|
||||||
+ if (config) {
|
|
||||||
+ gboolean all_off = TRUE;
|
|
||||||
+ int j;
|
|
||||||
+
|
|
||||||
+ for (j = 0; config->outputs[j] != NULL; ++j) {
|
|
||||||
+ if (config->outputs[j]->on)
|
|
||||||
+ all_off = FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (all_off) {
|
|
||||||
+ gnome_rr_config_free (array->pdata[i]);
|
|
||||||
+ array->pdata[i] = NULL;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* Remove NULL configurations */
|
|
||||||
+ new = g_ptr_array_new ();
|
|
||||||
+
|
|
||||||
+ for (i = 0; i < array->len; ++i) {
|
|
||||||
+ if (array->pdata[i]) {
|
|
||||||
+ g_ptr_array_add (new, array->pdata[i]);
|
|
||||||
+ print_configuration (array->pdata[i], "Final");
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ g_ptr_array_add (new, NULL);
|
|
||||||
+
|
|
||||||
+ g_ptr_array_free (array, TRUE);
|
|
||||||
+
|
|
||||||
+ return new;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+generate_fn_f7_configs (GsdXrandrManager *mgr)
|
|
||||||
+{
|
|
||||||
+ GPtrArray *array = g_ptr_array_new ();
|
|
||||||
+ GnomeRRScreen *screen = mgr->priv->rw_screen;
|
|
||||||
+
|
|
||||||
+ g_print ("Generating configurations\n");
|
|
||||||
+
|
|
||||||
+ /* Free any existing list of configurations */
|
|
||||||
+ if (mgr->priv->fn_f7_configs) {
|
|
||||||
+ int i;
|
|
||||||
+
|
|
||||||
+ for (i = 0; mgr->priv->fn_f7_configs[i] != NULL; ++i)
|
|
||||||
+ gnome_rr_config_free (mgr->priv->fn_f7_configs[i]);
|
|
||||||
+ g_free (mgr->priv->fn_f7_configs);
|
|
||||||
+
|
|
||||||
+ mgr->priv->fn_f7_configs = NULL;
|
|
||||||
+ mgr->priv->current_fn_f7_config = -1;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ g_ptr_array_add (array, gnome_rr_config_new_current (screen));
|
|
||||||
+ g_ptr_array_add (array, make_xinerama_setup (screen));
|
|
||||||
+ g_ptr_array_add (array, make_clone_setup (screen));
|
|
||||||
+ g_ptr_array_add (array, make_laptop_setup (screen));
|
|
||||||
+ g_ptr_array_add (array, make_other_setup (screen));
|
|
||||||
+ g_ptr_array_add (array, gnome_rr_config_new_stored (screen, NULL)); /* NULL-GError - if this can't read the stored config, no big deal */
|
|
||||||
+ g_ptr_array_add (array, NULL);
|
|
||||||
+
|
|
||||||
+ array = sanitize (array);
|
|
||||||
+
|
|
||||||
+ mgr->priv->fn_f7_configs = (GnomeRRConfig **)g_ptr_array_free (array, FALSE);
|
|
||||||
+ mgr->priv->current_fn_f7_config = 0;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+error_message (GsdXrandrManager *mgr, const char *primary_text, GError *error_to_display, const char *secondary_text)
|
|
||||||
+{
|
|
||||||
+#ifdef HAVE_LIBNOTIFY
|
|
||||||
+ GsdXrandrManagerPrivate *priv = mgr->priv;
|
|
||||||
+ NotifyNotification *notification;
|
|
||||||
+
|
|
||||||
+ g_assert (error_to_display == NULL || secondary_text == NULL);
|
|
||||||
+
|
|
||||||
+ notification = notify_notification_new_with_status_icon (primary_text,
|
|
||||||
+ error_to_display ? error_to_display->message : secondary_text,
|
|
||||||
+ GSD_XRANDR_ICON_NAME,
|
|
||||||
+ priv->status_icon);
|
|
||||||
+ notify_notification_show (notification, NULL); /* NULL-GError */
|
|
||||||
+#else
|
|
||||||
+ GtkWidget *dialog;
|
|
||||||
+
|
|
||||||
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
|
|
||||||
+ "%s", primary_text);
|
|
||||||
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
|
|
||||||
+ error_to_display ? error_to_display->message : secondary_text);
|
|
||||||
+
|
|
||||||
+ gtk_dialog_run (GTK_DIALOG (dialog));
|
|
||||||
+ gtk_widget_destroy (dialog);
|
|
||||||
+#endif /* HAVE_LIBNOTIFY */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+static void
|
|
||||||
+handle_fn_f7 (GsdXrandrManager *mgr)
|
|
||||||
+{
|
|
||||||
+ GsdXrandrManagerPrivate *priv = mgr->priv;
|
|
||||||
+ GnomeRRScreen *screen = priv->rw_screen;
|
|
||||||
+ GnomeRRConfig *current;
|
|
||||||
+ GError *error;
|
|
||||||
+
|
|
||||||
+ /* Theory of fn-F7 operation
|
|
||||||
+ *
|
|
||||||
+ * We maintain a datastructure "fn_f7_status", that contains
|
|
||||||
+ * a list of GnomeRRConfig's. Each of the GnomeRRConfigs has a
|
|
||||||
+ * mode (or "off") for each connected output.
|
|
||||||
+ *
|
|
||||||
+ * When the user hits fn-F7, we cycle to the next GnomeRRConfig
|
|
||||||
+ * in the data structure. If the data structure does not exist, it
|
|
||||||
+ * is generated. If the configs in the data structure do not match
|
|
||||||
+ * the current hardware reality, it is regenerated.
|
|
||||||
+ *
|
|
||||||
+ */
|
|
||||||
+ g_debug ("Handling fn-f7");
|
|
||||||
+
|
|
||||||
+ error = NULL;
|
|
||||||
+ if (!gnome_rr_screen_refresh (screen, &error)) {
|
|
||||||
+ char *str;
|
|
||||||
+
|
|
||||||
+ str = g_strdup_printf (_("Could not refresh the screen information: %s"), error->message);
|
|
||||||
+ g_error_free (error);
|
|
||||||
+
|
|
||||||
+ error_message (mgr, str, NULL, _("Trying to switch the monitor configuration anyway."));
|
|
||||||
+ g_free (str);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!priv->fn_f7_configs)
|
|
||||||
+ generate_fn_f7_configs (mgr);
|
|
||||||
+
|
|
||||||
+ current = gnome_rr_config_new_current (screen);
|
|
||||||
+
|
|
||||||
+ if (priv->fn_f7_configs &&
|
|
||||||
+ (!gnome_rr_config_match (current, priv->fn_f7_configs[0]) ||
|
|
||||||
+ !gnome_rr_config_equal (current, priv->fn_f7_configs[mgr->priv->current_fn_f7_config]))) {
|
|
||||||
+ /* Our view of the world is incorrect, so regenerate the
|
|
||||||
+ * configurations
|
|
||||||
+ */
|
|
||||||
+ generate_fn_f7_configs (mgr);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ gnome_rr_config_free (current);
|
|
||||||
+
|
|
||||||
+ if (priv->fn_f7_configs) {
|
|
||||||
+ mgr->priv->current_fn_f7_config++;
|
|
||||||
+
|
|
||||||
+ if (priv->fn_f7_configs[mgr->priv->current_fn_f7_config] == NULL)
|
|
||||||
+ mgr->priv->current_fn_f7_config = 0;
|
|
||||||
+
|
|
||||||
+ g_debug ("cycling to next configuration (%d)", mgr->priv->current_fn_f7_config);
|
|
||||||
+
|
|
||||||
+ print_configuration (priv->fn_f7_configs[mgr->priv->current_fn_f7_config], "new config");
|
|
||||||
+
|
|
||||||
+ g_debug ("applying");
|
|
||||||
+
|
|
||||||
+ error = NULL;
|
|
||||||
+ if (!gnome_rr_config_apply (priv->fn_f7_configs[mgr->priv->current_fn_f7_config], screen, &error)) {
|
|
||||||
+ error_message (mgr, _("Could not switch the monitor configuration"), error, NULL);
|
|
||||||
+ g_error_free (error);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ else {
|
|
||||||
+ g_debug ("no configurations generated");
|
|
||||||
+ }
|
|
||||||
+ g_debug ("done handling fn-f7");
|
|
||||||
}
|
|
||||||
|
|
||||||
static GdkFilterReturn
|
|
||||||
@@ -142,11 +591,8 @@ event_filter (GdkXEvent *xevent,
|
|
||||||
if (xev->xany.type != KeyPress && xev->xany.type != KeyRelease)
|
|
||||||
return GDK_FILTER_CONTINUE;
|
|
||||||
|
|
||||||
- if (xev->xkey.keycode == manager->priv->keycode) {
|
|
||||||
- /* FIXME: here we should cycle between valid
|
|
||||||
- * configurations, and save them
|
|
||||||
- */
|
|
||||||
- gnome_rr_config_apply_stored (manager->priv->rw_screen);
|
|
||||||
+ if (xev->xkey.keycode == manager->priv->keycode && xev->xany.type == KeyPress) {
|
|
||||||
+ handle_fn_f7 (manager);
|
|
||||||
|
|
||||||
return GDK_FILTER_CONTINUE;
|
|
||||||
}
|
|
||||||
@@ -391,7 +837,7 @@ get_allowed_rotations_for_output (GsdXrandrManager *manager, GnomeOutputInfo *ou
|
|
||||||
|
|
||||||
output->rotation = rotation_to_test;
|
|
||||||
|
|
||||||
- if (gnome_rr_config_applicable (priv->configuration, priv->rw_screen)) {
|
|
||||||
+ if (gnome_rr_config_applicable (priv->configuration, priv->rw_screen, NULL)) { /* NULL-GError */
|
|
||||||
(*out_num_rotations)++;
|
|
||||||
(*out_rotations) |= rotation_to_test;
|
|
||||||
}
|
|
||||||
@@ -424,20 +870,7 @@ add_unsupported_rotation_item (GsdXrandrManager *manager)
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
-error_dialog (const char *title, const char *msg)
|
|
||||||
-{
|
|
||||||
- GtkWidget *dialog;
|
|
||||||
-
|
|
||||||
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
|
|
||||||
- "%s", title);
|
|
||||||
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", msg);
|
|
||||||
-
|
|
||||||
- gtk_dialog_run (GTK_DIALOG (dialog));
|
|
||||||
- gtk_widget_destroy (dialog);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-static void
|
|
||||||
-output_rotation_item_activate_cb (GtkMenuItem *item, gpointer data)
|
|
||||||
+output_rotation_item_activate_cb (GtkCheckMenuItem *item, gpointer data)
|
|
||||||
{
|
|
||||||
GsdXrandrManager *manager = GSD_XRANDR_MANAGER (data);
|
|
||||||
struct GsdXrandrManagerPrivate *priv = manager->priv;
|
|
||||||
@@ -445,25 +878,30 @@ output_rotation_item_activate_cb (GtkMenuItem *item, gpointer data)
|
|
||||||
GnomeRRRotation rotation;
|
|
||||||
GError *error;
|
|
||||||
|
|
||||||
+ /* Not interested in deselected items */
|
|
||||||
+ if (!gtk_check_menu_item_get_active (item))
|
|
||||||
+ return;
|
|
||||||
+
|
|
||||||
output = g_object_get_data (G_OBJECT (item), "output");
|
|
||||||
rotation = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), "rotation"));
|
|
||||||
|
|
||||||
output->rotation = rotation;
|
|
||||||
|
|
||||||
error = NULL;
|
|
||||||
- if (gnome_rr_config_save (priv->configuration, &error)) {
|
|
||||||
- if (!gnome_rr_config_apply_stored (priv->rw_screen)) {
|
|
||||||
- error_dialog (_("The selected rotation could not be applied"),
|
|
||||||
- _("An error occurred while configuring the screen"));
|
|
||||||
- /* FIXME: that message is really useless. Make
|
|
||||||
- * gnome_rr_config_apply_stored() give us a meaningful
|
|
||||||
- * error message!
|
|
||||||
- */
|
|
||||||
- }
|
|
||||||
- } else {
|
|
||||||
- error_dialog (_("The selected rotation could not be applied"),
|
|
||||||
- error->message);
|
|
||||||
- g_error_free (error);
|
|
||||||
+ if (!gnome_rr_config_save (priv->configuration, &error)) {
|
|
||||||
+ error_message (manager, _("Could not save monitor configuration"), error, NULL);
|
|
||||||
+ if (error)
|
|
||||||
+ g_error_free (error);
|
|
||||||
+
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (!gnome_rr_config_apply_stored (priv->rw_screen, &error)) {
|
|
||||||
+ error_message (manager, _("The selected rotation could not be applied"), error, NULL);
|
|
||||||
+ if (error)
|
|
||||||
+ g_error_free (error);
|
|
||||||
+
|
|
||||||
+ return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -687,15 +1125,15 @@ gboolean
|
|
||||||
gsd_xrandr_manager_start (GsdXrandrManager *manager,
|
|
||||||
GError **error)
|
|
||||||
{
|
|
||||||
+ GError *my_error;
|
|
||||||
+
|
|
||||||
g_debug ("Starting xrandr manager");
|
|
||||||
|
|
||||||
manager->priv->rw_screen = gnome_rr_screen_new (
|
|
||||||
- gdk_screen_get_default (), on_randr_event, manager);
|
|
||||||
+ gdk_screen_get_default (), on_randr_event, manager, error);
|
|
||||||
|
|
||||||
- if (manager->priv->rw_screen == NULL) {
|
|
||||||
- g_set_error (error, 0, 0, "Failed to initialize XRandR extension");
|
|
||||||
+ if (manager->priv->rw_screen == NULL)
|
|
||||||
return FALSE;
|
|
||||||
- }
|
|
||||||
|
|
||||||
manager->priv->running = TRUE;
|
|
||||||
manager->priv->client = gconf_client_get_default ();
|
|
||||||
@@ -724,21 +1162,20 @@ gsd_xrandr_manager_start (GsdXrandrManager *manager,
|
|
||||||
gdk_error_trap_pop ();
|
|
||||||
}
|
|
||||||
|
|
||||||
- gnome_rr_config_apply_stored (manager->priv->rw_screen);
|
|
||||||
+ my_error = NULL;
|
|
||||||
+ if (!gnome_rr_config_apply_stored (manager->priv->rw_screen, &my_error)) {
|
|
||||||
+ if (my_error) {
|
|
||||||
+ if (!g_error_matches (my_error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
|
|
||||||
+ error_message (manager, _("Could not apply the stored configuration for monitors"), my_error, NULL);
|
|
||||||
+
|
|
||||||
+ g_error_free (my_error);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
|
|
||||||
gdk_window_add_filter (gdk_get_default_root_window(),
|
|
||||||
(GdkFilterFunc)event_filter,
|
|
||||||
manager);
|
|
||||||
|
|
||||||
- if (!manager->priv->client_filter_set) {
|
|
||||||
- /* FIXME: need to remove this in _stop;
|
|
||||||
- * for now make sure to only add it once */
|
|
||||||
- gdk_add_client_message_filter (gnome_randr_atom (),
|
|
||||||
- on_client_message,
|
|
||||||
- manager);
|
|
||||||
- manager->priv->client_filter_set = TRUE;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
start_or_stop_icon (manager);
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
@@ -781,6 +1218,11 @@ gsd_xrandr_manager_stop (GsdXrandrManager *manager)
|
|
||||||
manager->priv->rw_screen = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ if (manager->priv->dbus_connection != NULL) {
|
|
||||||
+ dbus_g_connection_unref (manager->priv->dbus_connection);
|
|
||||||
+ manager->priv->dbus_connection = NULL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
status_icon_stop (manager);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -856,6 +1298,8 @@ gsd_xrandr_manager_class_init (GsdXrandrManagerClass *klass)
|
|
||||||
object_class->dispose = gsd_xrandr_manager_dispose;
|
|
||||||
object_class->finalize = gsd_xrandr_manager_finalize;
|
|
||||||
|
|
||||||
+ dbus_g_object_type_install_info (GSD_TYPE_XRANDR_MANAGER, &dbus_glib_gsd_xrandr_manager_object_info);
|
|
||||||
+
|
|
||||||
g_type_class_add_private (klass, sizeof (GsdXrandrManagerPrivate));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -869,6 +1313,9 @@ gsd_xrandr_manager_init (GsdXrandrManager *manager)
|
|
||||||
manager->priv = GSD_XRANDR_MANAGER_GET_PRIVATE (manager);
|
|
||||||
|
|
||||||
manager->priv->keycode = keycode;
|
|
||||||
+
|
|
||||||
+ manager->priv->current_fn_f7_config = -1;
|
|
||||||
+ manager->priv->fn_f7_configs = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
@@ -886,6 +1333,26 @@ gsd_xrandr_manager_finalize (GObject *object)
|
|
||||||
G_OBJECT_CLASS (gsd_xrandr_manager_parent_class)->finalize (object);
|
|
||||||
}
|
|
||||||
|
|
||||||
+static gboolean
|
|
||||||
+register_manager_dbus (GsdXrandrManager *manager)
|
|
||||||
+{
|
|
||||||
+ GError *error = NULL;
|
|
||||||
+
|
|
||||||
+ manager->priv->dbus_connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
|
|
||||||
+ if (manager->priv->dbus_connection == NULL) {
|
|
||||||
+ if (error != NULL) {
|
|
||||||
+ g_warning ("Error getting session bus: %s", error->message);
|
|
||||||
+ g_error_free (error);
|
|
||||||
+ }
|
|
||||||
+ return FALSE;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* Hmm, should we do this in gsd_xrandr_manager_start()? */
|
|
||||||
+ dbus_g_connection_register_g_object (manager->priv->dbus_connection, GSD_XRANDR_DBUS_PATH, G_OBJECT (manager));
|
|
||||||
+
|
|
||||||
+ return TRUE;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
GsdXrandrManager *
|
|
||||||
gsd_xrandr_manager_new (void)
|
|
||||||
{
|
|
||||||
@@ -895,6 +1362,11 @@ gsd_xrandr_manager_new (void)
|
|
||||||
manager_object = g_object_new (GSD_TYPE_XRANDR_MANAGER, NULL);
|
|
||||||
g_object_add_weak_pointer (manager_object,
|
|
||||||
(gpointer *) &manager_object);
|
|
||||||
+
|
|
||||||
+ if (!register_manager_dbus (manager_object)) {
|
|
||||||
+ g_object_unref (manager_object);
|
|
||||||
+ return NULL;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
return GSD_XRANDR_MANAGER (manager_object);
|
|
||||||
diff --git a/plugins/xrandr/gsd-xrandr-manager.xml b/plugins/xrandr/gsd-xrandr-manager.xml
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..2efd18b
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/plugins/xrandr/gsd-xrandr-manager.xml
|
|
||||||
@@ -0,0 +1,8 @@
|
|
||||||
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
||||||
+<node>
|
|
||||||
+ <interface name="org.gnome.SettingsDaemon.XRANDR">
|
|
||||||
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="gsd_xrandr_manager"/>
|
|
||||||
+ <method name="ApplyConfiguration">
|
|
||||||
+ </method>
|
|
||||||
+ </interface>
|
|
||||||
+</node>
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 23 15:58:19 CET 2009 - vuntz@novell.com
|
||||||
|
|
||||||
|
- Re-enable gnome-settings-daemon-apport-monitor.patch, after
|
||||||
|
fixing some #include in the patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 14 19:46:53 CST 2009 - federico@novell.com
|
Wed Jan 14 19:46:53 CST 2009 - federico@novell.com
|
||||||
|
|
||||||
@ -5,6 +11,11 @@ Wed Jan 14 19:46:53 CST 2009 - federico@novell.com
|
|||||||
The RANDR plugin was displaying a confusing error message during
|
The RANDR plugin was displaying a confusing error message during
|
||||||
GDM's startup.
|
GDM's startup.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 10 14:03:11 CST 2009 - mboman@suse.de
|
||||||
|
|
||||||
|
- Remove gnome-settings-daemon-randr-gerror.diff. Fixed upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 9 14:03:11 CST 2009 - federico@novell.com
|
Fri Jan 9 14:03:11 CST 2009 - federico@novell.com
|
||||||
|
|
||||||
@ -14,6 +25,40 @@ Fri Jan 9 14:03:11 CST 2009 - federico@novell.com
|
|||||||
- Removed gnome-settings-daemon-randr-fnf7.diff as it is already contained
|
- Removed gnome-settings-daemon-randr-fnf7.diff as it is already contained
|
||||||
within the patch above.
|
within the patch above.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 2 08:06:51 EST 2009 - mboman@suse.de
|
||||||
|
|
||||||
|
- Update to version 2.25.3:
|
||||||
|
+ Bugs fixed: bgo#562977, bgo#563543, bgo#563796, bgo#559346, bgo#559482,
|
||||||
|
bgo#559564, bgo#559550, bgo#559562, bgo#559558, bgo#559639, bgo#559827,
|
||||||
|
bgo#559695, bgo#553434, bgo#560618, bgo#559797, bgo#522673, bgo#561275,
|
||||||
|
bgo#554951, bgo#555009, bgo#555873, bgo#555553, bgo#556307, bgo#556797,
|
||||||
|
bgo#552383, bgo#557307, bgo#557806, bgo#557808, bgo#549267, bgo#558503,
|
||||||
|
bgo#557807, bgo#559162, bgo#559163, bgo#559164, bgo#559165, bgo#559166,
|
||||||
|
bgo#559167, bgo#559168
|
||||||
|
+ Add support for fn-f7 type keys (Søren Sandmann)
|
||||||
|
+ Use D-Bus instead of an X client mesage in the xrandr plugin, so
|
||||||
|
the front-end can get error messages as well
|
||||||
|
+ Shut the daemon down properly when the SIGTERM signal is received or the
|
||||||
|
D-Bus bus goes away
|
||||||
|
+ Restore AccessX bits to original values on exit, fixes sticky keys
|
||||||
|
coming on when gnome-settings-daemon has exited
|
||||||
|
+ Add some performance annotations around libxklavier calls
|
||||||
|
+ Reshufle plugin priorities a bit
|
||||||
|
+ Listen for DeviceEnabled instead of DeviceAdded to be sure the mouse has
|
||||||
|
+ Add debugging output for volume_step
|
||||||
|
+ Fix --no-daemon
|
||||||
|
+ Depend on libxklavier 3.8
|
||||||
|
+ Fix checks for various X libraries
|
||||||
|
+ Fix check for xklavier device discovery
|
||||||
|
+ Ignore the 'activate' signal for deselected items so that the rotation
|
||||||
|
+ Spawn screensaver process in idle callback
|
||||||
|
+ Don't close stderr to not lose warnings
|
||||||
|
+ Use a pipe to communicate between children and parent process instead
|
||||||
|
of a signal
|
||||||
|
+ Translation updates
|
||||||
|
- Remove gnome-settings-daemon-randr-fnf7.diff. Fixed upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 8 16:13:26 CST 2008 - federico@novell.com
|
Mon Dec 8 16:13:26 CST 2008 - federico@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gnome-settings-daemon (Version 2.24.0)
|
# spec file for package gnome-settings-daemon (Version 2.25.3)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -23,8 +23,8 @@ Name: gnome-settings-daemon
|
|||||||
BuildRequires: fdupes gnome-common gnome-desktop-devel gnome-patch-translation gstreamer-0_10-plugins-base-devel intltool libglade2-devel libgnomekbd-devel update-desktop-files xorg-x11
|
BuildRequires: fdupes gnome-common gnome-desktop-devel gnome-patch-translation gstreamer-0_10-plugins-base-devel intltool libglade2-devel libgnomekbd-devel update-desktop-files xorg-x11
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: System/GUI/GNOME
|
Group: System/GUI/GNOME
|
||||||
Version: 2.24.0
|
Version: 2.25.3
|
||||||
Release: 8
|
Release: 1
|
||||||
Summary: Settings daemon for the GNOME desktop
|
Summary: Settings daemon for the GNOME desktop
|
||||||
Source: %{_name}-%{version}.tar.bz2
|
Source: %{_name}-%{version}.tar.bz2
|
||||||
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-system-proxy-configuration.diff
|
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-system-proxy-configuration.diff
|
||||||
@ -35,10 +35,8 @@ Patch4: gnome-settings-daemon-bnc369263-broken-xkb-layout.patch
|
|||||||
Patch6: gnome-settings-daemon-bnc427745-force-dpi.patch
|
Patch6: gnome-settings-daemon-bnc427745-force-dpi.patch
|
||||||
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-low-disk-space.patch bgo557647 vuntz@novell.com -- Show low disk space notifications
|
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-low-disk-space.patch bgo557647 vuntz@novell.com -- Show low disk space notifications
|
||||||
Patch7: gnome-settings-daemon-low-disk-space.patch
|
Patch7: gnome-settings-daemon-low-disk-space.patch
|
||||||
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-apport-monitor.patch bnc439203 jblunck@novell.com -- Add apport monitoring plugin
|
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-apport-monitor.patch bnc439203 jblunck@novell.com -- Add apport monitoring plugin.
|
||||||
Patch8: gnome-settings-daemon-apport-monitor.patch
|
Patch8: gnome-settings-daemon-apport-monitor.patch
|
||||||
# PATCH-FEATURE-UPSTREAM gnome-settings-daemon-randr-gerror.diff federico@novell.com - Add GError reporting to the GnomeRR API for RANDR
|
|
||||||
Patch9: gnome-settings-daemon-randr-gerror.diff
|
|
||||||
Url: http://www.gnome.org
|
Url: http://www.gnome.org
|
||||||
Requires: %{name}-lang = %{version}
|
Requires: %{name}-lang = %{version}
|
||||||
Obsoletes: resapplet
|
Obsoletes: resapplet
|
||||||
@ -98,7 +96,6 @@ gnome-patch-translation-prepare
|
|||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9 -p1
|
|
||||||
gnome-patch-translation-update
|
gnome-patch-translation-update
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -114,9 +111,8 @@ make %{?jobs:-j%jobs}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
# DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
|
|
||||||
# oh dear
|
|
||||||
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-settings-daemon-2.0/*.*a
|
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-settings-daemon-2.0/*.*a
|
||||||
|
%suse_update_desktop_file gnome-settings-daemon
|
||||||
%find_lang %{_name}
|
%find_lang %{_name}
|
||||||
%find_gconf_schemas
|
%find_gconf_schemas
|
||||||
cat %{name}.schemas_list >gnome-%{name}.lst
|
cat %{name}.schemas_list >gnome-%{name}.lst
|
||||||
@ -152,16 +148,52 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 14 2009 federico@novell.com
|
* Fri Jan 23 2009 vuntz@novell.com
|
||||||
|
- Re-enable gnome-settings-daemon-apport-monitor.patch, after
|
||||||
|
fixing some #include in the patch.
|
||||||
|
* Thu Jan 15 2009 federico@novell.com
|
||||||
- Updated gnome-settings-daemon-randr-gerror.diff to fix bnc#465968 -
|
- Updated gnome-settings-daemon-randr-gerror.diff to fix bnc#465968 -
|
||||||
The RANDR plugin was displaying a confusing error message during
|
The RANDR plugin was displaying a confusing error message during
|
||||||
GDM's startup.
|
GDM's startup.
|
||||||
|
* Sat Jan 10 2009 mboman@suse.de
|
||||||
|
- Remove gnome-settings-daemon-randr-gerror.diff. Fixed upstream
|
||||||
* Fri Jan 09 2009 federico@novell.com
|
* Fri Jan 09 2009 federico@novell.com
|
||||||
- Added gnome-settings-daemon-randr-gerror.diff. This makes the RANDR
|
- Added gnome-settings-daemon-randr-gerror.diff. This makes the RANDR
|
||||||
plugin for gnome-settings-daemon process GError arguments from the
|
plugin for gnome-settings-daemon process GError arguments from the
|
||||||
GnomeRR API, so that it can give good error reporting.
|
GnomeRR API, so that it can give good error reporting.
|
||||||
- Removed gnome-settings-daemon-randr-fnf7.diff as it is already contained
|
- Removed gnome-settings-daemon-randr-fnf7.diff as it is already contained
|
||||||
within the patch above.
|
within the patch above.
|
||||||
|
* Fri Jan 02 2009 mboman@suse.de
|
||||||
|
- Update to version 2.25.3:
|
||||||
|
+ Bugs fixed: bgo#562977, bgo#563543, bgo#563796, bgo#559346, bgo#559482,
|
||||||
|
bgo#559564, bgo#559550, bgo#559562, bgo#559558, bgo#559639, bgo#559827,
|
||||||
|
bgo#559695, bgo#553434, bgo#560618, bgo#559797, bgo#522673, bgo#561275,
|
||||||
|
bgo#554951, bgo#555009, bgo#555873, bgo#555553, bgo#556307, bgo#556797,
|
||||||
|
bgo#552383, bgo#557307, bgo#557806, bgo#557808, bgo#549267, bgo#558503,
|
||||||
|
bgo#557807, bgo#559162, bgo#559163, bgo#559164, bgo#559165, bgo#559166,
|
||||||
|
bgo#559167, bgo#559168
|
||||||
|
+ Add support for fn-f7 type keys (Søren Sandmann)
|
||||||
|
+ Use D-Bus instead of an X client mesage in the xrandr plugin, so
|
||||||
|
the front-end can get error messages as well
|
||||||
|
+ Shut the daemon down properly when the SIGTERM signal is received or the
|
||||||
|
D-Bus bus goes away
|
||||||
|
+ Restore AccessX bits to original values on exit, fixes sticky keys
|
||||||
|
coming on when gnome-settings-daemon has exited
|
||||||
|
+ Add some performance annotations around libxklavier calls
|
||||||
|
+ Reshufle plugin priorities a bit
|
||||||
|
+ Listen for DeviceEnabled instead of DeviceAdded to be sure the mouse has
|
||||||
|
+ Add debugging output for volume_step
|
||||||
|
+ Fix --no-daemon
|
||||||
|
+ Depend on libxklavier 3.8
|
||||||
|
+ Fix checks for various X libraries
|
||||||
|
+ Fix check for xklavier device discovery
|
||||||
|
+ Ignore the 'activate' signal for deselected items so that the rotation
|
||||||
|
+ Spawn screensaver process in idle callback
|
||||||
|
+ Don't close stderr to not lose warnings
|
||||||
|
+ Use a pipe to communicate between children and parent process instead
|
||||||
|
of a signal
|
||||||
|
+ Translation updates
|
||||||
|
- Remove gnome-settings-daemon-randr-fnf7.diff. Fixed upstream
|
||||||
* Mon Dec 08 2008 federico@novell.com
|
* Mon Dec 08 2008 federico@novell.com
|
||||||
- Updated gnome-settings-daemon-system-proxy-configuration.diff to fix
|
- Updated gnome-settings-daemon-system-proxy-configuration.diff to fix
|
||||||
https://bugzilla.novell.com/show_bug.cgi?id=456131 - the system's
|
https://bugzilla.novell.com/show_bug.cgi?id=456131 - the system's
|
||||||
@ -173,7 +205,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Thu Oct 23 2008 vuntz@novell.com
|
* Thu Oct 23 2008 vuntz@novell.com
|
||||||
- Add gnome-settings-daemon-low-disk-space.patch, to help drop
|
- Add gnome-settings-daemon-low-disk-space.patch, to help drop
|
||||||
gnome-volume-manager.
|
gnome-volume-manager.
|
||||||
* Fri Oct 03 2008 mboman@suse.de
|
* Sat Oct 04 2008 mboman@suse.de
|
||||||
- Update to version 2.24.0:
|
- Update to version 2.24.0:
|
||||||
- Fix the fix for read-only home directories (bgo#530975)
|
- Fix the fix for read-only home directories (bgo#530975)
|
||||||
- Make the volume popup not crash when invoking it on any screen but
|
- Make the volume popup not crash when invoking it on any screen but
|
||||||
@ -286,7 +318,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
+ Apply keyboard settings on startup (bgo#525440)
|
+ Apply keyboard settings on startup (bgo#525440)
|
||||||
+ Make "Home" keybinding work again
|
+ Make "Home" keybinding work again
|
||||||
+ Updated translations.
|
+ Updated translations.
|
||||||
* Thu Mar 13 2008 maw@suse.de
|
* Fri Mar 14 2008 maw@suse.de
|
||||||
- Update to version 2.22.0:
|
- Update to version 2.22.0:
|
||||||
+ Actually link against libXi when building with XInput support
|
+ Actually link against libXi when building with XInput support
|
||||||
(bgo#519488)
|
(bgo#519488)
|
||||||
|
Loading…
Reference in New Issue
Block a user