changeset 2828:0e460510d782 trunk

[svn] - fix audacious_pbutton_size_allocate
author desowin
date Fri, 08 Jun 2007 02:02:12 -0700
parents 9b27830ba765
children 4eda78b785ed
files ChangeLog src/audacious/build_stamp.c src/audacious/widgets/audacious_pbutton.c
diffstat 3 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 07 13:24:13 2007 -0700
+++ b/ChangeLog	Fri Jun 08 02:02:12 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-07 20:24:13 +0000  Tomasz Mon <desowin@atheme.org>
+  revision [4680]
+  implement toggle-double-size
+  trunk/src/audacious/ui_main.c                   |    2 -
+  trunk/src/audacious/widgets/audacious_pbutton.c |   36 ++++++++++++++++++------
+  2 files changed, 28 insertions(+), 10 deletions(-)
+
+
 2007-06-07 11:51:40 +0000  Tomasz Mon <desowin@atheme.org>
   revision [4678]
   remove obsolete code
--- a/src/audacious/build_stamp.c	Thu Jun 07 13:24:13 2007 -0700
+++ b/src/audacious/build_stamp.c	Fri Jun 08 02:02:12 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070607-4678";
+const gchar *svn_stamp = "20070607-4680";
--- a/src/audacious/widgets/audacious_pbutton.c	Thu Jun 07 13:24:13 2007 -0700
+++ b/src/audacious/widgets/audacious_pbutton.c	Fri Jun 08 02:02:12 2007 -0700
@@ -263,6 +263,10 @@
 
                 gtk_widget_size_allocate (GTK_BIN (button)->child, &child_alloc);
         }
+
+        if (GDK_IS_WINDOW(button->event_window))
+            gdk_window_move_resize (button->event_window, widget->allocation.x, widget->allocation.y,
+                                    widget->allocation.width, widget->allocation.height);
 }
 
 static void button_pressed(AudaciousPButton *button) {
@@ -357,11 +361,6 @@
         gtk_widget_set_size_request(widget, priv->w*(1+priv->double_size), priv->h*(1+priv->double_size));
         gtk_widget_set_uposition(widget, button->x*(1+priv->double_size), button->y*(1+priv->double_size));
 
-        if (GDK_IS_WINDOW(button->event_window)) {
-            gdk_window_resize(button->event_window, priv->w*(1+priv->double_size), priv->h*(1+priv->double_size));
-            gdk_window_move(button->event_window, button->x*(1+priv->double_size), button->y*(1+priv->double_size));
-        }
-
         audacious_pbutton_paint(button);
 }