Comment 41 for bug 527157

Revision history for this message
James H (jhuber72) wrote :

gsd-media-keys-manager.c.rej :

--- plugins/media-keys/gsd-media-keys-manager.c 2012-04-14 11:13:20.000000000 +0400
+++ plugins/media-keys/gsd-media-keys-manager.c 2012-04-14 11:20:07.772836587 +0400
@@ -142,6 +144,8 @@
         NotifyNotification *volume_notification;
         NotifyNotification *brightness_notification;
         NotifyNotification *kb_backlight_notification;
+
+ gboolean brightness_in_hardware;
 };

 static void gsd_media_keys_manager_class_init (GsdMediaKeysManagerClass *klass);
@@ -1535,6 +1539,11 @@
         GsdMediaKeysManager *manager = data->manager;
         GError *error = NULL;

+ if(manager->priv->brightness_in_hardware) {
+ update_screen_cb(source_object, res, user_data);
+ return;
+ }
+
         GVariant *old_percentage = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object),
                                                              res, &error);
         if (old_percentage == NULL) {