mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
GtkFrame: Use G_PARAM_EXPLICIT_NOTIFY
This commit is contained in:
parent
331c28b369
commit
3ae562aca2
@ -166,8 +166,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
|||||||
P_("Label"),
|
P_("Label"),
|
||||||
P_("Text of the frame's label"),
|
P_("Text of the frame's label"),
|
||||||
NULL,
|
NULL,
|
||||||
GTK_PARAM_READABLE |
|
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||||
GTK_PARAM_WRITABLE));
|
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_LABEL_XALIGN,
|
PROP_LABEL_XALIGN,
|
||||||
g_param_spec_float ("label-xalign",
|
g_param_spec_float ("label-xalign",
|
||||||
@ -176,7 +175,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
|||||||
0.0,
|
0.0,
|
||||||
1.0,
|
1.0,
|
||||||
0.0,
|
0.0,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_LABEL_YALIGN,
|
PROP_LABEL_YALIGN,
|
||||||
g_param_spec_float ("label-yalign",
|
g_param_spec_float ("label-yalign",
|
||||||
@ -185,7 +184,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
|||||||
0.0,
|
0.0,
|
||||||
1.0,
|
1.0,
|
||||||
0.5,
|
0.5,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_SHADOW_TYPE,
|
PROP_SHADOW_TYPE,
|
||||||
g_param_spec_enum ("shadow-type",
|
g_param_spec_enum ("shadow-type",
|
||||||
@ -193,7 +192,7 @@ gtk_frame_class_init (GtkFrameClass *class)
|
|||||||
P_("Appearance of the frame border"),
|
P_("Appearance of the frame border"),
|
||||||
GTK_TYPE_SHADOW_TYPE,
|
GTK_TYPE_SHADOW_TYPE,
|
||||||
GTK_SHADOW_ETCHED_IN,
|
GTK_SHADOW_ETCHED_IN,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_LABEL_WIDGET,
|
PROP_LABEL_WIDGET,
|
||||||
@ -607,14 +606,12 @@ gtk_frame_set_shadow_type (GtkFrame *frame,
|
|||||||
{
|
{
|
||||||
widget = GTK_WIDGET (frame);
|
widget = GTK_WIDGET (frame);
|
||||||
priv->shadow_type = type;
|
priv->shadow_type = type;
|
||||||
g_object_notify (G_OBJECT (frame), "shadow-type");
|
|
||||||
|
|
||||||
if (gtk_widget_is_drawable (widget))
|
if (gtk_widget_is_drawable (widget))
|
||||||
{
|
gtk_widget_queue_draw (widget);
|
||||||
gtk_widget_queue_draw (widget);
|
|
||||||
}
|
|
||||||
|
|
||||||
gtk_widget_queue_resize (widget);
|
gtk_widget_queue_resize (widget);
|
||||||
|
g_object_notify (G_OBJECT (frame), "shadow-type");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user