progressbar: Remove paint vfunc

Unconditionally call gtk_progress_bar_paint() instead. It was called in
various places instead of the vfunc already anyway.
This commit is contained in:
Benjamin Otte 2010-07-31 15:32:33 +02:00
parent de401fd06d
commit ca513cec2e
2 changed files with 1 additions and 3 deletions

View File

@ -119,7 +119,6 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
widget_class->size_allocate = gtk_progress_bar_size_allocate;
widget_class->style_set = gtk_progress_bar_style_set;
class->paint = gtk_progress_bar_paint;
class->act_mode_enter = gtk_progress_bar_act_mode_enter;
g_object_class_install_property (gobject_class,
@ -629,7 +628,7 @@ gtk_progress_bar_create_pixmap (GtkProgressBar *pbar)
GTK_SHADOW_NONE,
NULL, widget, "trough", 0, 0, -1, -1);
GTK_PROGRESS_BAR_GET_CLASS (pbar)->paint (pbar);
gtk_progress_bar_paint (pbar);
}
}

View File

@ -67,7 +67,6 @@ struct _GtkProgressBarClass
{
GtkWidgetClass parent_class;
void (* paint) (GtkProgressBar *progress);
void (* act_mode_enter) (GtkProgressBar *progress);
/* Padding for future expansion */