[gtk+] progressbar: Remove act_mode_enter vfunc
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] progressbar: Remove act_mode_enter vfunc
- Date: Sat, 31 Jul 2010 20:43:41 +0000 (UTC)
commit 5e8c274e32ce5a40a0f9acc6036da1a09a4a1128
Author: Benjamin Otte <otte redhat com>
Date: Sat Jul 31 16:09:11 2010 +0200
progressbar: Remove act_mode_enter vfunc
It doesn't make sense to have a vfunc for this.
gtk/gtkprogressbar.c | 4 +---
gtk/gtkprogressbar.h | 2 --
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 032cba5..b6222bd 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -112,8 +112,6 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
widget_class->size_request = gtk_progress_bar_size_request;
widget_class->size_allocate = gtk_progress_bar_size_allocate;
- class->act_mode_enter = gtk_progress_bar_act_mode_enter;
-
g_object_class_install_property (gobject_class,
PROP_ORIENTATION,
g_param_spec_enum ("orientation",
@@ -933,7 +931,7 @@ gtk_progress_bar_set_activity_mode (GtkProgressBar *pbar,
priv->activity_mode = activity_mode;
if (priv->activity_mode)
- GTK_PROGRESS_BAR_GET_CLASS (pbar)->act_mode_enter (pbar);
+ gtk_progress_bar_act_mode_enter (pbar);
if (gtk_widget_is_drawable (GTK_WIDGET (pbar)))
gtk_widget_queue_resize (GTK_WIDGET (pbar));
diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h
index a1a4f3b..9d32e52 100644
--- a/gtk/gtkprogressbar.h
+++ b/gtk/gtkprogressbar.h
@@ -67,8 +67,6 @@ struct _GtkProgressBarClass
{
GtkWidgetClass parent_class;
- void (* act_mode_enter) (GtkProgressBar *progress);
-
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]