Created
June 20, 2015 14:57
-
-
Save nachanon/2da87d57b39c880e02a0 to your computer and use it in GitHub Desktop.
Patch for MATE Power Manager 1.8.0 to fix redundant/incorrect signal handling of backlight brightness change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Flos Lonicerae <lonicerae@users.noreply.github.com> | |
Subject: Fix brightness change signal handling | |
Bug: https://github.com/mate-desktop/mate-power-manager/issues/76 | |
Bug-Debian: https://bugs.debian.org/785017 | |
--- a/src/gpm-backlight.c | |
+++ b/src/gpm-backlight.c | |
@@ -642,10 +642,6 @@ | |
g_settings_set_double(backlight->priv->settings, GPM_SETTINGS_BRIGHTNESS_AC, percentage*1.0f); | |
egg_debug ("saving brightness for ac supply: %i", percentage); | |
} | |
- | |
- /* we emit a signal for the brightness applet */ | |
- egg_debug ("emitting brightness-changed : %i", percentage); | |
- g_signal_emit (backlight, signals [BRIGHTNESS_CHANGED], 0, percentage); | |
} | |
/** | |
@@ -735,7 +731,7 @@ | |
/* watch for manual brightness changes (for the popup widget) */ | |
backlight->priv->brightness = gpm_brightness_new (); | |
- g_signal_connect (backlight->priv->brightness, "brightness-changed", | |
+ g_signal_connect (backlight, "brightness-changed", | |
G_CALLBACK (brightness_changed_cb), backlight); | |
/* we use up_client for the ac-adapter-changed signal */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment