[Xfce4-commits] <xfce4-power-manager:master> Fix a bunch of set but unused variables.
Ali Abdallah
noreply at xfce.org
Thu May 5 12:18:02 CEST 2011
Updating branch refs/heads/master
to f3671687c06758b192b64476e54900dfd6460b38 (commit)
from f7a48533e198f3bb8d1ff5cffc1d2ec3bfdca6e6 (commit)
commit f3671687c06758b192b64476e54900dfd6460b38
Author: Ali Abdallah <aliov at xfce.org>
Date: Thu May 5 11:18:21 2011 +0200
Fix a bunch of set but unused variables.
configure.ac.in | 2 +-
libdbus/xfpm-dbus-monitor.c | 2 ++
panel-plugins/brightness/brightness-button.c | 6 ++----
src/xfpm-button.c | 4 ----
src/xfpm-main.c | 3 +++
5 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/configure.ac.in b/configure.ac.in
index 3cada9f..12cb8bf 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -1,7 +1,7 @@
m4_define([intltool_minimum_version], [0.31])
m4_define([xfpm_version_major], [1])
m4_define([xfpm_version_minor], [0])
-m4_define([xfpm_version_micro], [3])
+m4_define([xfpm_version_micro], [10])
m4_define([xfpm_version_build], [])
m4_define([xfpm_version_tag],[])
m4_define([xfpm_version], [xfpm_version_major().xfpm_version_minor().xfpm_version_micro()ifelse(xfpm_version_tag(), [git], [xfpm_version_tag().xfpm_version_build()], [xfpm_version_tag()])])
diff --git a/libdbus/xfpm-dbus-monitor.c b/libdbus/xfpm-dbus-monitor.c
index f3c819c..a5888c4 100644
--- a/libdbus/xfpm-dbus-monitor.c
+++ b/libdbus/xfpm-dbus-monitor.c
@@ -185,7 +185,9 @@ xfpm_dbus_monitor_query_system_bus_idle (gpointer data)
return TRUE;
}
+
monitor = XFPM_DBUS_MONITOR (data);
+ monitor->priv->system_bus = bus;
g_signal_emit (G_OBJECT (monitor), signals [SYSTEM_BUS_CONNECTION_CHANGED], 0, TRUE);
return FALSE;
diff --git a/panel-plugins/brightness/brightness-button.c b/panel-plugins/brightness/brightness-button.c
index 0cf3dec..c4327e2 100644
--- a/panel-plugins/brightness/brightness-button.c
+++ b/panel-plugins/brightness/brightness-button.c
@@ -185,7 +185,7 @@ brightness_button_set_tooltip (BrightnessButton *button)
static gboolean
brightness_button_popup_win (GtkWidget *widget, GdkEvent *ev, guint32 ev_time)
{
- gint x, y, orientation;
+ gint x, y;
gint current_level = 0;
GdkDisplay *display;
GdkScreen *screen;
@@ -234,7 +234,6 @@ brightness_button_popup_win (GtkWidget *widget, GdkEvent *ev, guint32 ev_time)
gdk_window_get_origin (widget->window, &x, &y);
pos = xfce_panel_plugin_get_screen_position (button->priv->plugin);
- orientation = xfce_panel_plugin_get_orientation (button->priv->plugin);
/* top */
if ( pos == XFCE_SCREEN_POSITION_NW_H ||
@@ -320,9 +319,8 @@ brightness_button_press_event (GtkWidget *widget, GdkEventButton *ev)
static void
minus_clicked (GtkWidget *widget, BrightnessButton *button)
{
- gint level, max_level;
+ gint level;
- max_level = xfpm_brightness_get_max_level (button->priv->brightness);
level = (gint ) gtk_range_get_value (GTK_RANGE (button->priv->range));
if ( level != 0 )
diff --git a/src/xfpm-button.c b/src/xfpm-button.c
index b93684e..d2a92e0 100644
--- a/src/xfpm-button.c
+++ b/src/xfpm-button.c
@@ -252,10 +252,6 @@ xfpm_button_init (XfpmButton *button)
static void
xfpm_button_finalize (GObject *object)
{
- XfpmButton *button;
-
- button = XFPM_BUTTON (object);
-
G_OBJECT_CLASS(xfpm_button_parent_class)->finalize(object);
}
diff --git a/src/xfpm-main.c b/src/xfpm-main.c
index d43cc74..a98583b 100644
--- a/src/xfpm-main.c
+++ b/src/xfpm-main.c
@@ -136,6 +136,7 @@ xfpm_dump (GHashTable *hash)
"%s: %s\n"
"%s: %s\n"
"%s: %s\n"
+ "%s: %s\n"
"%s: %s\n",
_("Can suspend"),
xfpm_bool_to_local_string (can_suspend),
@@ -151,6 +152,8 @@ xfpm_dump (GHashTable *hash)
xfpm_bool_to_local_string (can_shutdown),
_("Authorized to spin down hard disks"),
xfpm_bool_to_local_string (can_spin_down),
+ _("Has battery"),
+ xfpm_bool_to_local_string (has_battery),
_("Has brightness panel"),
xfpm_bool_to_local_string (has_lcd_brightness),
_("Has power button"),
More information about the Xfce4-commits
mailing list