summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-09 09:20:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-09 13:31:07 -0400
commitf446ffdd5d4875aa59b5a337da3021b13c5ec947 (patch)
treea792bbe8910c156e7b343813f4e18805b738c275 /gtk/gtkprogressbar.c
parente1d1ed863eecfedec11cef864c7e9b58ae24ce3e (diff)
downloadgtk+-f446ffdd5d4875aa59b5a337da3021b13c5ec947.tar.gz
GtkProgressbar: Use G_PARAM_EXPLICIT_NOTIFY
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index f355b07f3f..e191012fa2 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -155,7 +155,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
P_("Inverted"),
P_("Invert the direction in which the progress bar grows"),
FALSE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_FRACTION,
@@ -163,7 +163,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
P_("Fraction"),
P_("The fraction of total work that has been completed"),
0.0, 1.0, 0.0,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_PULSE_STEP,
@@ -171,7 +171,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
P_("Pulse Step"),
P_("The fraction of total progress to move the bouncing block when pulsed"),
0.0, 1.0, 0.1,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_TEXT,
@@ -201,7 +201,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
P_("Show text"),
P_("Whether the progress is shown as text."),
FALSE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkProgressBar:ellipsize:
@@ -225,13 +225,15 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
"does not have enough room to display the entire string, if at all."),
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_NONE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("xspacing",
P_("X spacing"),
P_("Extra spacing applied to the width of a progress bar."),
0, G_MAXINT, 7,
G_PARAM_READWRITE));
+
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("yspacing",
P_("Y spacing"),
@@ -1250,8 +1252,8 @@ gtk_progress_bar_set_orientation (GtkProgressBar *pbar,
{
priv->orientation = orientation;
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (pbar));
-
gtk_widget_queue_resize (GTK_WIDGET (pbar));
+ g_object_notify (G_OBJECT (pbar), "orientation");
}
}