changeset 3002:26c68f59663d trunk

UiSkinnedNumber doesn't need redraw signal
author Tomasz Mon <desowin@gmail.com>
date Sun, 08 Jul 2007 12:58:17 +0200
parents 6d4b7b739232
children 6720b09fec47
files src/audacious/ui_skinned_number.c src/audacious/ui_skinned_number.h
diffstat 2 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_number.c	Sun Jul 08 12:21:09 2007 +0200
+++ b/src/audacious/ui_skinned_number.c	Sun Jul 08 12:58:17 2007 +0200
@@ -51,7 +51,6 @@
 static gboolean ui_skinned_number_expose         (GtkWidget *widget, GdkEventExpose *event);
 static gboolean ui_skinned_number_button_press   (GtkWidget *widget, GdkEventButton *event);
 static void ui_skinned_number_toggle_doublesize  (UiSkinnedNumber *number);
-static void ui_skinned_number_redraw             (UiSkinnedNumber *number);
 
 static GtkWidgetClass *parent_class = NULL;
 static guint number_signals[LAST_SIGNAL] = { 0 };
@@ -94,7 +93,6 @@
 
     klass->clicked = NULL;
     klass->doubled = ui_skinned_number_toggle_doublesize;
-    klass->redraw = ui_skinned_number_redraw;
 
     number_signals[CLICKED] = 
         g_signal_new ("clicked", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
@@ -105,11 +103,6 @@
         g_signal_new ("toggle-double-size", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
                       G_STRUCT_OFFSET (UiSkinnedNumberClass, doubled), NULL, NULL,
                       gtk_marshal_VOID__VOID, G_TYPE_NONE, 0);
-
-    number_signals[REDRAW] = 
-        g_signal_new ("redraw", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
-                      G_STRUCT_OFFSET (UiSkinnedNumberClass, redraw), NULL, NULL,
-                      gtk_marshal_VOID__VOID, G_TYPE_NONE, 0);
 }
 
 static void ui_skinned_number_init(UiSkinnedNumber *number) {
@@ -260,10 +253,6 @@
     gtk_widget_queue_draw(GTK_WIDGET(number));
 }
 
-static void ui_skinned_number_redraw(UiSkinnedNumber *number) {
-    gtk_widget_queue_draw(GTK_WIDGET(number));
-}
-
 void ui_skinned_number_set_number(GtkWidget *widget, gint num) {
     UiSkinnedNumber *number = UI_SKINNED_NUMBER (widget);
 
--- a/src/audacious/ui_skinned_number.h	Sun Jul 08 12:21:09 2007 +0200
+++ b/src/audacious/ui_skinned_number.h	Sun Jul 08 12:58:17 2007 +0200
@@ -50,7 +50,6 @@
     GtkWidgetClass          parent_class;
     void (* clicked)        (UiSkinnedNumber *textbox);
     void (* doubled)        (UiSkinnedNumber *textbox);
-    void (* redraw)         (UiSkinnedNumber *textbox);
 };
 
 GtkWidget* ui_skinned_number_new (GtkWidget *fixed, GdkPixmap * parent, GdkGC * gc, gint x, gint y, SkinPixmapId si);