[Xfce4-commits] [xfce/xfce4-power-manager] 03/03: Backlight: Fix setting brightness via gtk range widget
noreply at xfce.org
noreply at xfce.org
Sun Jun 22 20:36:50 CEST 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit c865b4455ac3916847ff1abc1fd3a12811ef7ce4
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Jun 16 21:33:29 2014 +0200
Backlight: Fix setting brightness via gtk range widget
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
panel-plugins/brightness/brightness-button.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/panel-plugins/brightness/brightness-button.c b/panel-plugins/brightness/brightness-button.c
index 7f88afa..f42ee01 100644
--- a/panel-plugins/brightness/brightness-button.c
+++ b/panel-plugins/brightness/brightness-button.c
@@ -318,9 +318,9 @@ brightness_button_press_event (GtkWidget *widget, GdkEventButton *ev)
static void
minus_clicked (GtkWidget *widget, BrightnessButton *button)
{
- gint level;
+ gint32 level;
- level = (gint ) gtk_range_get_value (GTK_RANGE (button->priv->range));
+ level = (gint32) gtk_range_get_value (GTK_RANGE (button->priv->range));
if ( level > 0 )
gtk_range_set_value (GTK_RANGE (button->priv->range), level - 1);
@@ -329,10 +329,10 @@ minus_clicked (GtkWidget *widget, BrightnessButton *button)
static void
plus_clicked (GtkWidget *widget, BrightnessButton *button)
{
- gint level, max_level;
+ gint32 level, max_level;
max_level = xfpm_brightness_get_max_level (button->priv->brightness);
- level = (gint ) gtk_range_get_value (GTK_RANGE (button->priv->range));
+ level = (gint32) gtk_range_get_value (GTK_RANGE (button->priv->range));
if ( level < max_level )
gtk_range_set_value (GTK_RANGE (button->priv->range), level + 1);
@@ -343,7 +343,7 @@ range_value_changed (GtkWidget *widget, BrightnessButton *button)
{
gint32 range_level, hw_level;
- range_level = (gint) gtk_range_get_value (GTK_RANGE (button->priv->range));
+ range_level = (gint32) gtk_range_get_value (GTK_RANGE (button->priv->range));
xfpm_brightness_get_level (button->priv->brightness, &hw_level);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list