[Xfce4-commits] <xfce4-weather-plugin:master> Make changes to scrollbox animation setting instantaneous.

Harald Judt noreply at xfce.org
Tue Nov 27 16:46:24 CET 2012


Updating branch refs/heads/master
         to dc4d8c2b26b47429bc9d132fa7c8e4e2df43ff37 (commit)
       from 9aa8645e8c6d33baaa78bf8d8e5ae1af19684cd9 (commit)

commit dc4d8c2b26b47429bc9d132fa7c8e4e2df43ff37
Author: Harald Judt <h.judt at gmx.at>
Date:   Sun Nov 25 14:13:00 2012 +0100

    Make changes to scrollbox animation setting instantaneous.

 panel-plugin/weather-config.c    |    2 ++
 panel-plugin/weather-scrollbox.c |    8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index 3694edb..0eac179 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -949,6 +949,8 @@ check_scrollbox_animate_toggled(GtkWidget *button,
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;
     dialog->wd->scrollbox_animate =
         gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
+    gtk_scrollbox_set_animate(GTK_SCROLLBOX(dialog->wd->scrollbox),
+                              dialog->wd->scrollbox_animate);
 }
 
 
diff --git a/panel-plugin/weather-scrollbox.c b/panel-plugin/weather-scrollbox.c
index 42990b5..8ea0830 100644
--- a/panel-plugin/weather-scrollbox.c
+++ b/panel-plugin/weather-scrollbox.c
@@ -308,14 +308,16 @@ gtk_scrollbox_clear(GtkScrollbox *self)
 }
 
 
-void gtk_scrollbox_set_animate(GtkScrollbox *self,
-                               const gboolean animate)
+void
+gtk_scrollbox_set_animate(GtkScrollbox *self,
+                          gboolean animate)
 {
     self->animate = animate;
 }
 
 
-void gtk_scrollbox_next_label(GtkScrollbox *self)
+void
+gtk_scrollbox_next_label(GtkScrollbox *self)
 {
     if (self->active->next != NULL) {
         self->active = self->active->next;


More information about the Xfce4-commits mailing list