mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
notebook: Remove style properties
Hardcode the default values until someone comes up with a proposal for a better way.
This commit is contained in:
parent
61dd8f92b8
commit
07063d82aa
@ -819,68 +819,6 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
|||||||
FALSE,
|
FALSE,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE));
|
||||||
|
|
||||||
/**
|
|
||||||
* GtkNotebook:has-secondary-backward-stepper:
|
|
||||||
*
|
|
||||||
* The “has-secondary-backward-stepper” property determines whether
|
|
||||||
* a second backward arrow button is displayed on the opposite end
|
|
||||||
* of the tab area.
|
|
||||||
*
|
|
||||||
* Since: 2.4
|
|
||||||
*/
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
|
||||||
g_param_spec_boolean ("has-secondary-backward-stepper",
|
|
||||||
P_("Secondary backward stepper"),
|
|
||||||
P_("Display a second backward arrow button on the opposite end of the tab area"),
|
|
||||||
FALSE,
|
|
||||||
GTK_PARAM_READABLE));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* GtkNotebook:has-secondary-forward-stepper:
|
|
||||||
*
|
|
||||||
* The “has-secondary-forward-stepper” property determines whether
|
|
||||||
* a second forward arrow button is displayed on the opposite end
|
|
||||||
* of the tab area.
|
|
||||||
*
|
|
||||||
* Since: 2.4
|
|
||||||
*/
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
|
||||||
g_param_spec_boolean ("has-secondary-forward-stepper",
|
|
||||||
P_("Secondary forward stepper"),
|
|
||||||
P_("Display a second forward arrow button on the opposite end of the tab area"),
|
|
||||||
FALSE,
|
|
||||||
GTK_PARAM_READABLE));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* GtkNotebook:has-backward-stepper:
|
|
||||||
*
|
|
||||||
* The “has-backward-stepper” property determines whether
|
|
||||||
* the standard backward arrow button is displayed.
|
|
||||||
*
|
|
||||||
* Since: 2.4
|
|
||||||
*/
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
|
||||||
g_param_spec_boolean ("has-backward-stepper",
|
|
||||||
P_("Backward stepper"),
|
|
||||||
P_("Display the standard backward arrow button"),
|
|
||||||
TRUE,
|
|
||||||
GTK_PARAM_READABLE));
|
|
||||||
|
|
||||||
/**
|
|
||||||
* GtkNotebook:has-forward-stepper:
|
|
||||||
*
|
|
||||||
* The “has-forward-stepper” property determines whether
|
|
||||||
* the standard forward arrow button is displayed.
|
|
||||||
*
|
|
||||||
* Since: 2.4
|
|
||||||
*/
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
|
||||||
g_param_spec_boolean ("has-forward-stepper",
|
|
||||||
P_("Forward stepper"),
|
|
||||||
P_("Display the standard forward arrow button"),
|
|
||||||
TRUE,
|
|
||||||
GTK_PARAM_READABLE));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GtkNotebook::switch-page:
|
* GtkNotebook::switch-page:
|
||||||
* @notebook: the object which received the signal.
|
* @notebook: the object which received the signal.
|
||||||
@ -2868,12 +2806,10 @@ update_arrow_nodes (GtkNotebook *notebook)
|
|||||||
down_icon_name = "pan-start-symbolic";
|
down_icon_name = "pan-start-symbolic";
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_style_get (GTK_WIDGET (notebook),
|
arrow[0] = TRUE;
|
||||||
"has-backward-stepper", &arrow[0],
|
arrow[1] = FALSE;
|
||||||
"has-secondary-forward-stepper", &arrow[1],
|
arrow[2] = FALSE;
|
||||||
"has-secondary-backward-stepper", &arrow[2],
|
arrow[3] = TRUE;
|
||||||
"has-forward-stepper", &arrow[3],
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user