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:
Matthias Clasen 2015-11-16 15:13:33 -05:00
parent 08c4bc8aa5
commit 43f822e70f
12 changed files with 21 additions and 21 deletions

View File

@ -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:

View File

@ -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");

View File

@ -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:

View File

@ -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 */
/**

View File

@ -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);

View File

@ -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");

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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);

View File

@ -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: