forked from AuroraMiddleware/gtk
Annotate deprecated style properties
Use G_PARAM_DEPRECATED with deprecated style properties. This will make it easier to identify and remove such stale properties from css, since it will now trigger warnings.
This commit is contained in:
parent
08c4bc8aa5
commit
43f822e70f
@ -543,7 +543,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
6,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkAssistant:content-padding:
|
||||
@ -559,7 +559,7 @@ gtk_assistant_class_init (GtkAssistantClass *class)
|
||||
0,
|
||||
G_MAXINT,
|
||||
1,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkAssistant:page-type:
|
||||
|
@ -605,7 +605,7 @@ gtk_button_class_init (GtkButtonClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
2,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_BUTTON_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "button");
|
||||
|
@ -1505,7 +1505,7 @@ gtk_entry_class_init (GtkEntryClass *class)
|
||||
P_("Icon Prelight"),
|
||||
P_("Whether activatable icons should prelight when hovered"),
|
||||
TRUE,
|
||||
GTK_PARAM_READABLE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkEntry:progress-border:
|
||||
|
@ -687,7 +687,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
P_("Selection Box Color"),
|
||||
P_("Color of the selection box"),
|
||||
g_type_from_name ("GdkColor"),
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
|
||||
/**
|
||||
@ -704,7 +704,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
P_("Opacity of the selection box"),
|
||||
0, 0xff,
|
||||
0x40,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/* Signals */
|
||||
/**
|
||||
|
@ -526,7 +526,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
CONTENT_AREA_DEFAULT_BORDER,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkInfoBar:content-area-spacing:
|
||||
@ -544,7 +544,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
CONTENT_AREA_DEFAULT_SPACING,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkInfoBar:button-spacing:
|
||||
@ -561,7 +561,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
ACTION_AREA_DEFAULT_SPACING,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkInfoBar:action-area-border:
|
||||
@ -578,7 +578,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
ACTION_AREA_DEFAULT_BORDER,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
binding_set = gtk_binding_set_by_class (klass);
|
||||
|
||||
|
@ -226,7 +226,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
P_("Style of bevel around the menubar"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_SHADOW_OUT,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkMenuBar:internal-padding:
|
||||
@ -245,7 +245,7 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
|
||||
G_MAXINT,
|
||||
0,
|
||||
GTK_PARAM_READABLE |
|
||||
G_PARAM_DEPRECATED));
|
||||
G_PARAM_DEPRECATED|G_PARAM_DEPRECATED));
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_MENU_BAR);
|
||||
gtk_widget_class_set_css_name (widget_class, "menubar");
|
||||
|
@ -500,7 +500,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
"Shadow type when item is selected",
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_SHADOW_NONE,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkMenuItem:horizontal-padding:
|
||||
|
@ -270,7 +270,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
P_("X spacing"),
|
||||
P_("Extra spacing applied to the width of a progress bar."),
|
||||
0, G_MAXINT, 2,
|
||||
G_PARAM_READWRITE));
|
||||
G_PARAM_READWRITE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkProgressBar:yspacing:
|
||||
@ -285,7 +285,7 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
|
||||
P_("Y spacing"),
|
||||
P_("Extra spacing applied to the height of a progress bar."),
|
||||
0, G_MAXINT, 2,
|
||||
G_PARAM_READWRITE));
|
||||
G_PARAM_READWRITE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkProgressBar:min-horizontal-bar-width:
|
||||
|
@ -585,7 +585,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
G_MININT,
|
||||
G_MAXINT,
|
||||
0,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkRange:arrow-displacement-y:
|
||||
@ -601,7 +601,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
G_MININT,
|
||||
G_MAXINT,
|
||||
0,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkRange:trough-under-steppers:
|
||||
|
@ -447,7 +447,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
||||
P_("Style of bevel around the spin button"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_SHADOW_IN,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
/**
|
||||
* GtkSpinButton::input:
|
||||
|
@ -593,7 +593,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
0,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("max-child-expand",
|
||||
@ -634,7 +634,7 @@ gtk_toolbar_class_init (GtkToolbarClass *klass)
|
||||
P_("Style of bevel around the toolbar"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_SHADOW_OUT,
|
||||
GTK_PARAM_READABLE));
|
||||
GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
|
||||
|
||||
binding_set = gtk_binding_set_by_class (klass);
|
||||
|
||||
|
@ -313,7 +313,7 @@ gtk_tool_button_class_init (GtkToolButtonClass *klass)
|
||||
0,
|
||||
G_MAXINT,
|
||||
3,
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
/**
|
||||
* GtkToolButton::clicked:
|
||||
|
Loading…
Reference in New Issue
Block a user