changeset 2834:0598469fe2a9 trunk

[svn] - cleaned up header
author desowin
date Wed, 13 Jun 2007 12:31:00 -0700
parents 1e97a0a228b7
children d4d21dd19490
files ChangeLog src/audacious/build_stamp.c src/audacious/widgets/audacious_pbutton.c src/audacious/widgets/audacious_pbutton.h
diffstat 4 files changed, 21 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jun 13 09:16:36 2007 -0700
+++ b/ChangeLog	Wed Jun 13 12:31:00 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-13 16:16:36 +0000  Tomasz Mon <desowin@atheme.org>
+  revision [4692]
+  - reduce number of redraws
+  trunk/src/audacious/widgets/audacious_pbutton.c |   46 +++++++++++++++---------
+  trunk/src/audacious/widgets/audacious_pbutton.h |    2 +
+  2 files changed, 32 insertions(+), 16 deletions(-)
+
+
 2007-06-12 06:32:00 +0000  Ben Tucker <bnt@interchange.ubc.ca>
   revision [4690]
   fixed bug #972
--- a/src/audacious/build_stamp.c	Wed Jun 13 09:16:36 2007 -0700
+++ b/src/audacious/build_stamp.c	Wed Jun 13 12:31:00 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070612-4690";
+const gchar *svn_stamp = "20070613-4692";
--- a/src/audacious/widgets/audacious_pbutton.c	Wed Jun 13 09:16:36 2007 -0700
+++ b/src/audacious/widgets/audacious_pbutton.c	Wed Jun 13 12:31:00 2007 -0700
@@ -60,6 +60,11 @@
 static gint audacious_pbutton_button_release(GtkWidget *widget, GdkEventButton *event);
 static void button_pressed(AudaciousPButton *button);
 static void button_released(AudaciousPButton *button);
+static void audacious_pbutton_pressed(AudaciousPButton *button);
+static void audacious_pbutton_released(AudaciousPButton *button);
+static void audacious_pbutton_clicked(AudaciousPButton *button);
+static void audacious_pbutton_set_pressed (AudaciousPButton *button, gboolean pressed);
+
 static void audacious_pbutton_add(GtkContainer *container, GtkWidget *widget);
 static void audacious_pbutton_toggle_doublesize(AudaciousPButton *button);
 
@@ -288,10 +293,10 @@
 }
 
 static void audacious_pbutton_update_state(AudaciousPButton *button) {
-        _audacious_pbutton_set_pressed(button, button->button_down); 
+        audacious_pbutton_set_pressed(button, button->button_down); 
 }
 
-void _audacious_pbutton_set_pressed (AudaciousPButton *button, gboolean pressed) {
+static void audacious_pbutton_set_pressed (AudaciousPButton *button, gboolean pressed) {
         if (pressed != button->pressed) {
                 button->pressed = pressed;
                 button->redraw = TRUE;
@@ -323,17 +328,17 @@
         return TRUE;
 }
 
-void audacious_pbutton_pressed(AudaciousPButton *button) {
+static void audacious_pbutton_pressed(AudaciousPButton *button) {
         g_return_if_fail(AUDACIOUS_IS_PBUTTON(button));
         g_signal_emit(button, button_signals[PRESSED], 0);
 }
 
-void audacious_pbutton_released(AudaciousPButton *button) {
+static void audacious_pbutton_released(AudaciousPButton *button) {
         g_return_if_fail(AUDACIOUS_IS_PBUTTON(button));
         g_signal_emit(button, button_signals[RELEASED], 0);
 }
 
-void audacious_pbutton_clicked(AudaciousPButton *button) {
+static void audacious_pbutton_clicked(AudaciousPButton *button) {
         g_return_if_fail(AUDACIOUS_IS_PBUTTON(button));
         g_signal_emit(button, button_signals[CLICKED], 0);
 }
@@ -343,7 +348,7 @@
 
         button = AUDACIOUS_PBUTTON(widget);
         button->hover = TRUE;
-        if(button->button_down) _audacious_pbutton_set_pressed(button, TRUE);
+        if(button->button_down) audacious_pbutton_set_pressed(button, TRUE);
 
         return FALSE;
 }
@@ -353,7 +358,7 @@
 
         button = AUDACIOUS_PBUTTON (widget);
         button->hover = FALSE;
-        if(button->button_down) _audacious_pbutton_set_pressed(button, FALSE);
+        if(button->button_down) audacious_pbutton_set_pressed(button, FALSE);
 
         return FALSE;
 }
--- a/src/audacious/widgets/audacious_pbutton.h	Wed Jun 13 09:16:36 2007 -0700
+++ b/src/audacious/widgets/audacious_pbutton.h	Wed Jun 13 12:31:00 2007 -0700
@@ -75,10 +75,5 @@
 GType audacious_pbutton_get_type(void) G_GNUC_CONST;
 GtkWidget* audacious_pbutton_new();
 void audacious_pbutton_setup(GtkWidget *button, GtkWidget *fixed, GdkPixmap * parent, GdkGC * gc, gint x, gint y, gint w, gint h, gint nx, gint ny, gint px, gint py, SkinPixmapId si);
-void audacious_pbutton_pressed(AudaciousPButton *button);
-void audacious_pbutton_released(AudaciousPButton *button);
-void audacious_pbutton_clicked(AudaciousPButton *button);
-
-void _audacious_pbutton_set_pressed(AudaciousPButton *button, gboolean pressed);
 
 #endif