[gtk+] progressbar: Remove paint vfunc
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] progressbar: Remove paint vfunc
- Date: Sat, 31 Jul 2010 20:43:30 +0000 (UTC)
commit ca513cec2ed81cfedef85ae5ec34845535b93f7e
Author: Benjamin Otte <otte redhat com>
Date: Sat Jul 31 15:32:33 2010 +0200
progressbar: Remove paint vfunc
Unconditionally call gtk_progress_bar_paint() instead. It was called in
various places instead of the vfunc already anyway.
gtk/gtkprogressbar.c | 3 +--
gtk/gtkprogressbar.h | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 5752d70..4aa21aa 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -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);
}
}
diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h
index fb9fd4d..a1a4f3b 100644
--- a/gtk/gtkprogressbar.h
+++ b/gtk/gtkprogressbar.h
@@ -67,7 +67,6 @@ struct _GtkProgressBarClass
{
GtkWidgetClass parent_class;
- void (* paint) (GtkProgressBar *progress);
void (* act_mode_enter) (GtkProgressBar *progress);
/* Padding for future expansion */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]