Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
52711c24
Commit
52711c24
authored
Mar 09, 2005
by
Matthias Clasen
Browse files
More canonical property names.
parent
263bce44
Changes
54
Hide whitespace changes
Inline
Side-by-side
gtk/gtkaboutdialog.c
View file @
52711c24
...
...
@@ -298,7 +298,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_WEBSITE_LABEL
,
g_param_spec_string
(
"website
_
label"
,
g_param_spec_string
(
"website
-
label"
,
P_
(
"Website label"
),
P_
(
"The label for the link to the website of the program. If this is not set, it defaults to the URL"
),
NULL
,
...
...
@@ -367,7 +367,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_TRANSLATOR_CREDITS
,
g_param_spec_string
(
"translator
_
credits"
,
g_param_spec_string
(
"translator
-
credits"
,
P_
(
"Translator credits"
),
P_
(
"Credits to the translators. This string should be marked as translatable"
),
NULL
,
...
...
@@ -399,7 +399,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_LOGO_ICON_NAME
,
g_param_spec_string
(
"logo
_
icon
_
name"
,
g_param_spec_string
(
"logo
-
icon
-
name"
,
P_
(
"Logo Icon Name"
),
P_
(
"A named icon to use as the logo for the about box."
),
NULL
,
...
...
@@ -407,7 +407,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
/* Style properties */
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_boxed
(
"link
_
color"
,
g_param_spec_boxed
(
"link
-
color"
,
P_
(
"Link Color"
),
P_
(
"Color of hyperlinks"
),
GDK_TYPE_COLOR
,
...
...
gtk/gtkaccellabel.c
View file @
52711c24
...
...
@@ -135,14 +135,14 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class)
g_object_class_install_property
(
gobject_class
,
PROP_ACCEL_CLOSURE
,
g_param_spec_boxed
(
"accel
_
closure"
,
g_param_spec_boxed
(
"accel
-
closure"
,
P_
(
"Accelerator Closure"
),
P_
(
"The closure to be monitored for accelerator changes"
),
G_TYPE_CLOSURE
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_ACCEL_WIDGET
,
g_param_spec_object
(
"accel
_
widget"
,
g_param_spec_object
(
"accel
-
widget"
,
P_
(
"Accelerator Widget"
),
P_
(
"The widget to be monitored for accelerator changes"
),
GTK_TYPE_WIDGET
,
...
...
gtk/gtkaction.c
View file @
52711c24
...
...
@@ -208,7 +208,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_SHORT_LABEL
,
g_param_spec_string
(
"short
_
label"
,
g_param_spec_string
(
"short
-
label"
,
P_
(
"Short label"
),
P_
(
"A shorter label that may be used on toolbar buttons."
),
NULL
,
...
...
@@ -222,7 +222,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_STOCK_ID
,
g_param_spec_string
(
"stock
_
id"
,
g_param_spec_string
(
"stock
-
id"
,
P_
(
"Stock Icon"
),
P_
(
"The stock icon displayed in widgets representing "
"this action."
),
...
...
@@ -230,7 +230,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_VISIBLE_HORIZONTAL
,
g_param_spec_boolean
(
"visible
_
horizontal"
,
g_param_spec_boolean
(
"visible
-
horizontal"
,
P_
(
"Visible when horizontal"
),
P_
(
"Whether the toolbar item is visible when the toolbar "
"is in a horizontal orientation."
),
...
...
@@ -246,7 +246,7 @@ gtk_action_class_init (GtkActionClass *klass)
*/
g_object_class_install_property
(
gobject_class
,
PROP_VISIBLE_OVERFLOWN
,
g_param_spec_boolean
(
"visible
_
overflown"
,
g_param_spec_boolean
(
"visible
-
overflown"
,
P_
(
"Visible when overflown"
),
P_
(
"When TRUE, toolitem proxies for this action "
"are represented in the toolbar overflow menu."
),
...
...
@@ -254,7 +254,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_VISIBLE_VERTICAL
,
g_param_spec_boolean
(
"visible
_
vertical"
,
g_param_spec_boolean
(
"visible
-
vertical"
,
P_
(
"Visible when vertical"
),
P_
(
"Whether the toolbar item is visible when the toolbar "
"is in a vertical orientation."
),
...
...
@@ -262,7 +262,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_IS_IMPORTANT
,
g_param_spec_boolean
(
"is
_
important"
,
g_param_spec_boolean
(
"is
-
important"
,
P_
(
"Is important"
),
P_
(
"Whether the action is considered important. "
"When TRUE, toolitem proxies for this action "
...
...
@@ -271,7 +271,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_HIDE_IF_EMPTY
,
g_param_spec_boolean
(
"hide
_
if
_
empty"
,
g_param_spec_boolean
(
"hide
-
if
-
empty"
,
P_
(
"Hide if empty"
),
P_
(
"When TRUE, empty menu proxies for this action are hidden."
),
TRUE
,
...
...
@@ -292,7 +292,7 @@ gtk_action_class_init (GtkActionClass *klass)
G_PARAM_READWRITE
));
g_object_class_install_property
(
gobject_class
,
PROP_ACTION_GROUP
,
g_param_spec_object
(
"action
_
group"
,
g_param_spec_object
(
"action
-
group"
,
P_
(
"Action Group"
),
P_
(
"The GtkActionGroup this GtkAction is associated with, or NULL (for internal use)."
),
GTK_TYPE_ACTION_GROUP
,
...
...
gtk/gtkaspectframe.c
View file @
52711c24
...
...
@@ -127,7 +127,7 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_OBEY_CHILD
,
g_param_spec_boolean
(
"obey
_
child"
,
g_param_spec_boolean
(
"obey
-
child"
,
P_
(
"Obey child"
),
P_
(
"Force aspect ratio to match that of the frame's child"
),
TRUE
,
...
...
gtk/gtkbbox.c
View file @
52711c24
...
...
@@ -117,7 +117,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
*/
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"child
_
min
_
width"
,
g_param_spec_int
(
"child
-
min
-
width"
,
P_
(
"Minimum child width"
),
P_
(
"Minimum width of buttons inside the box"
),
0
,
...
...
@@ -126,7 +126,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
G_PARAM_READABLE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"child
_
min
_
height"
,
g_param_spec_int
(
"child
-
min
-
height"
,
P_
(
"Minimum child height"
),
P_
(
"Minimum height of buttons inside the box"
),
0
,
...
...
@@ -135,7 +135,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
G_PARAM_READABLE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"child
_
internal
_
pad
_
x"
,
g_param_spec_int
(
"child
-
internal
-
pad
-
x"
,
P_
(
"Child internal width padding"
),
P_
(
"Amount to increase child's size on either side"
),
0
,
...
...
@@ -144,7 +144,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
G_PARAM_READABLE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"child
_
internal
_
pad
_
y"
,
g_param_spec_int
(
"child
-
internal
-
pad
-
y"
,
P_
(
"Child internal height padding"
),
P_
(
"Amount to increase child's size on the top and bottom"
),
0
,
...
...
@@ -153,7 +153,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
G_PARAM_READABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_LAYOUT_STYLE
,
g_param_spec_enum
(
"layout
_
style"
,
g_param_spec_enum
(
"layout
-
style"
,
P_
(
"Layout style"
),
P_
(
"How to layout the buttons in the box. Possible values are default, spread, edge, start and end"
),
GTK_TYPE_BUTTON_BOX_STYLE
,
...
...
gtk/gtkcalendar.c
View file @
52711c24
...
...
@@ -496,7 +496,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property
(
gobject_class
,
PROP_SHOW_HEADING
,
g_param_spec_boolean
(
"show
_
heading"
,
g_param_spec_boolean
(
"show
-
heading"
,
P_
(
"Show Heading"
),
P_
(
"If TRUE, a heading is displayed"
),
TRUE
,
...
...
@@ -511,7 +511,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property
(
gobject_class
,
PROP_SHOW_DAY_NAMES
,
g_param_spec_boolean
(
"show
_
day
_
names"
,
g_param_spec_boolean
(
"show
-
day
-
names"
,
P_
(
"Show Day Names"
),
P_
(
"If TRUE, day names are displayed"
),
TRUE
,
...
...
@@ -525,7 +525,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property
(
gobject_class
,
PROP_NO_MONTH_CHANGE
,
g_param_spec_boolean
(
"no
_
month
_
change"
,
g_param_spec_boolean
(
"no
-
month
-
change"
,
P_
(
"No Month Change"
),
P_
(
"If TRUE, the selected month cannot be changed"
),
FALSE
,
...
...
@@ -540,7 +540,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
*/
g_object_class_install_property
(
gobject_class
,
PROP_SHOW_WEEK_NUMBERS
,
g_param_spec_boolean
(
"show
_
week
_
numbers"
,
g_param_spec_boolean
(
"show
-
week
-
numbers"
,
P_
(
"Show Week Numbers"
),
P_
(
"If TRUE, week numbers are displayed"
),
FALSE
,
...
...
gtk/gtkcellrenderercombo.c
View file @
52711c24
...
...
@@ -105,7 +105,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_TEXT_COLUMN
,
g_param_spec_int
(
"text
_
column"
,
g_param_spec_int
(
"text
-
column"
,
P_
(
"Text Column"
),
P_
(
"A column in the data source model to get the strings from"
),
-
1
,
...
...
@@ -123,7 +123,7 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_HAS_ENTRY
,
g_param_spec_boolean
(
"has
_
entry"
,
g_param_spec_boolean
(
"has
-
entry"
,
P_
(
"Has Entry"
),
P_
(
"If FALSE, don't allow to enter strings other than the chosen ones"
),
TRUE
,
...
...
gtk/gtkcellrendererpixbuf.c
View file @
52711c24
...
...
@@ -143,7 +143,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property
(
object_class
,
PROP_PIXBUF_EXPANDER_OPEN
,
g_param_spec_object
(
"pixbuf
_
expander
_
open"
,
g_param_spec_object
(
"pixbuf
-
expander
-
open"
,
P_
(
"Pixbuf Expander Open"
),
P_
(
"Pixbuf for open expander"
),
GDK_TYPE_PIXBUF
,
...
...
@@ -152,7 +152,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property
(
object_class
,
PROP_PIXBUF_EXPANDER_CLOSED
,
g_param_spec_object
(
"pixbuf
_
expander
_
closed"
,
g_param_spec_object
(
"pixbuf
-
expander
-
closed"
,
P_
(
"Pixbuf Expander Closed"
),
P_
(
"Pixbuf for closed expander"
),
GDK_TYPE_PIXBUF
,
...
...
@@ -161,7 +161,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property
(
object_class
,
PROP_STOCK_ID
,
g_param_spec_string
(
"stock
_
id"
,
g_param_spec_string
(
"stock
-
id"
,
P_
(
"Stock ID"
),
P_
(
"The stock ID of the stock icon to render"
),
NULL
,
...
...
@@ -169,7 +169,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property
(
object_class
,
PROP_STOCK_SIZE
,
g_param_spec_uint
(
"stock
_
size"
,
g_param_spec_uint
(
"stock
-
size"
,
P_
(
"Size"
),
P_
(
"The GtkIconSize value that specifies the size of the rendered icon"
),
0
,
...
...
@@ -179,7 +179,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
g_object_class_install_property
(
object_class
,
PROP_STOCK_DETAIL
,
g_param_spec_string
(
"stock
_
detail"
,
g_param_spec_string
(
"stock
-
detail"
,
P_
(
"Detail"
),
P_
(
"Render detail to pass to the theme engine"
),
NULL
,
...
...
@@ -195,7 +195,7 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class)
*/
g_object_class_install_property
(
object_class
,
PROP_FOLLOW_STATE
,
g_param_spec_boolean
(
"follow
_
state"
,
g_param_spec_boolean
(
"follow
-
state"
,
P_
(
"Follow State"
),
P_
(
"Whether the rendered pixbuf should be "
"colorized according to the state"
),
...
...
gtk/gtkcellview.c
View file @
52711c24
...
...
@@ -185,7 +185,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_BACKGROUND_GDK
,
g_param_spec_boxed
(
"background
_
gdk"
,
g_param_spec_boxed
(
"background
-
gdk"
,
P_
(
"Background color"
),
P_
(
"Background color as a GdkColor"
),
GDK_TYPE_COLOR
,
...
...
@@ -193,7 +193,7 @@ gtk_cell_view_class_init (GtkCellViewClass *klass)
#define ADD_SET_PROP(propname, propval, nick, blurb) g_object_class_install_property (gobject_class, propval, g_param_spec_boolean (propname, nick, blurb, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE))
ADD_SET_PROP
(
"background
_
set"
,
PROP_BACKGROUND_SET
,
ADD_SET_PROP
(
"background
-
set"
,
PROP_BACKGROUND_SET
,
P_
(
"Background set"
),
P_
(
"Whether this tag affects the background color"
));
...
...
gtk/gtkcheckbutton.c
View file @
52711c24
...
...
@@ -96,7 +96,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
class
->
draw_indicator
=
gtk_real_check_button_draw_indicator
;
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"indicator
_
size"
,
g_param_spec_int
(
"indicator
-
size"
,
P_
(
"Indicator Size"
),
P_
(
"Size of check or radio indicator"
),
0
,
...
...
@@ -104,7 +104,7 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
INDICATOR_SIZE
,
G_PARAM_READABLE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"indicator
_
spacing"
,
g_param_spec_int
(
"indicator
-
spacing"
,
P_
(
"Indicator Spacing"
),
P_
(
"Spacing around check or radio indicator"
),
0
,
...
...
gtk/gtkcheckmenuitem.c
View file @
52711c24
...
...
@@ -130,14 +130,14 @@ gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
g_object_class_install_property
(
gobject_class
,
PROP_DRAW_AS_RADIO
,
g_param_spec_boolean
(
"draw
_
as
_
radio"
,
g_param_spec_boolean
(
"draw
-
as
-
radio"
,
P_
(
"Draw as radio menu item"
),
P_
(
"Whether the menu item looks like a radio menu item"
),
FALSE
,
G_PARAM_READWRITE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"indicator
_
size"
,
g_param_spec_int
(
"indicator
-
size"
,
P_
(
"Indicator Size"
)
,
P_
(
"Size of check or radio indicator"
),
...
...
gtk/gtkclist.c
View file @
52711c24
...
...
@@ -575,19 +575,19 @@ gtk_clist_class_init (GtkCListClass *klass)
klass
->
set_cell_contents
=
set_cell_contents
;
klass
->
cell_size_request
=
cell_size_request
;
gtk_object_add_arg_type
(
"GtkCList::n
_
columns"
,
gtk_object_add_arg_type
(
"GtkCList::n
-
columns"
,
GTK_TYPE_UINT
,
GTK_ARG_READWRITE
|
GTK_ARG_CONSTRUCT_ONLY
,
ARG_N_COLUMNS
);
gtk_object_add_arg_type
(
"GtkCList::shadow
_
type"
,
gtk_object_add_arg_type
(
"GtkCList::shadow
-
type"
,
GTK_TYPE_SHADOW_TYPE
,
GTK_ARG_READWRITE
,
ARG_SHADOW_TYPE
);
gtk_object_add_arg_type
(
"GtkCList::selection
_
mode"
,
gtk_object_add_arg_type
(
"GtkCList::selection
-
mode"
,
GTK_TYPE_SELECTION_MODE
,
GTK_ARG_READWRITE
,
ARG_SELECTION_MODE
);
gtk_object_add_arg_type
(
"GtkCList::row
_
height"
,
gtk_object_add_arg_type
(
"GtkCList::row
-
height"
,
GTK_TYPE_UINT
,
GTK_ARG_READWRITE
,
ARG_ROW_HEIGHT
);
...
...
@@ -595,15 +595,15 @@ gtk_clist_class_init (GtkCListClass *klass)
GTK_TYPE_BOOL
,
GTK_ARG_READWRITE
,
ARG_REORDERABLE
);
gtk_object_add_arg_type
(
"GtkCList::titles
_
active"
,
gtk_object_add_arg_type
(
"GtkCList::titles
-
active"
,
GTK_TYPE_BOOL
,
GTK_ARG_READWRITE
,
ARG_TITLES_ACTIVE
);
gtk_object_add_arg_type
(
"GtkCList::use
_
drag
_
icons"
,
gtk_object_add_arg_type
(
"GtkCList::use
-
drag
-
icons"
,
GTK_TYPE_BOOL
,
GTK_ARG_READWRITE
,
ARG_USE_DRAG_ICONS
);
gtk_object_add_arg_type
(
"GtkCList::sort
_
type"
,
gtk_object_add_arg_type
(
"GtkCList::sort
-
type"
,
GTK_TYPE_SORT_TYPE
,
GTK_ARG_READWRITE
,
ARG_SORT_TYPE
);
...
...
@@ -870,11 +870,11 @@ gtk_clist_class_init (GtkCListClass *klass)
"scroll_horizontal"
,
2
,
GTK_TYPE_ENUM
,
GTK_SCROLL_JUMP
,
GTK_TYPE_FLOAT
,
1
.
0
);
gtk_binding_entry_add_signal
(
binding_set
,
GDK_KP_End
,
0
,
"scroll_horizontal"
,
2
,
GTK_TYPE_ENUM
,
GTK_SCROLL_JUMP
,
GTK_TYPE_FLOAT
,
1
.
0
);
gtk_binding_entry_add_signal
(
binding_set
,
GDK_Escape
,
0
,
"undo_selection"
,
0
);
...
...
gtk/gtkcolorbutton.c
View file @
52711c24
...
...
@@ -200,7 +200,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
*/
g_object_class_install_property
(
gobject_class
,
PROP_USE_ALPHA
,
g_param_spec_boolean
(
"use
_
alpha"
,
P_
(
"Use alpha"
),
g_param_spec_boolean
(
"use
-
alpha"
,
P_
(
"Use alpha"
),
P_
(
"Whether or not to give the color an alpha value"
),
FALSE
,
(
G_PARAM_READABLE
|
G_PARAM_WRITABLE
)));
...
...
gtk/gtkcolorsel.c
View file @
52711c24
...
...
@@ -1813,28 +1813,28 @@ gtk_color_selection_class_init (GtkColorSelectionClass *klass)
g_object_class_install_property
(
gobject_class
,
PROP_HAS_OPACITY_CONTROL
,
g_param_spec_boolean
(
"has
_
opacity
_
control"
,
g_param_spec_boolean
(
"has
-
opacity
-
control"
,
P_
(
"Has Opacity Control"
),
P_
(
"Whether the color selector should allow setting opacity"
),
FALSE
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_HAS_PALETTE
,
g_param_spec_boolean
(
"has
_
palette"
,
g_param_spec_boolean
(
"has
-
palette"
,
P_
(
"Has palette"
),
P_
(
"Whether a palette should be used"
),
FALSE
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_CURRENT_COLOR
,
g_param_spec_boxed
(
"current
_
color"
,
g_param_spec_boxed
(
"current
-
color"
,
P_
(
"Current Color"
),
P_
(
"The current color"
),
GDK_TYPE_COLOR
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_CURRENT_ALPHA
,
g_param_spec_uint
(
"current
_
alpha"
,
g_param_spec_uint
(
"current
-
alpha"
,
P_
(
"Current Alpha"
),
P_
(
"The current opacity value (0 fully transparent, 65535 fully opaque)"
),
0
,
65535
,
65535
,
...
...
gtk/gtkcombo.c
View file @
52711c24
...
...
@@ -141,21 +141,21 @@ gtk_combo_class_init (GtkComboClass * klass)
g_object_class_install_property
(
gobject_class
,
PROP_ENABLE_ARROW_KEYS
,
g_param_spec_boolean
(
"enable
_
arrow
_
keys"
,
g_param_spec_boolean
(
"enable
-
arrow
-
keys"
,
P_
(
"Enable arrow keys"
),
P_
(
"Whether the arrow keys move through the list of items"
),
TRUE
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_ENABLE_ARROWS_ALWAYS
,
g_param_spec_boolean
(
"enable
_
arrows
_
always"
,
g_param_spec_boolean
(
"enable
-
arrows
-
always"
,
P_
(
"Always enable arrows"
),
P_
(
"Obsolete property, ignored"
),
TRUE
,
G_PARAM_READABLE
|
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_CASE_SENSITIVE
,
g_param_spec_boolean
(
"case
_
sensitive"
,
g_param_spec_boolean
(
"case
-
sensitive"
,
P_
(
"Case sensitive"
),
P_
(
"Whether list item matching is case sensitive"
),
FALSE
,
...
...
@@ -163,7 +163,7 @@ gtk_combo_class_init (GtkComboClass * klass)
g_object_class_install_property
(
gobject_class
,
PROP_ALLOW_EMPTY
,
g_param_spec_boolean
(
"allow
_
empty"
,
g_param_spec_boolean
(
"allow
-
empty"
,
P_
(
"Allow empty"
),
P_
(
"Whether an empty value may be entered in this field"
),
TRUE
,
...
...
@@ -171,7 +171,7 @@ gtk_combo_class_init (GtkComboClass * klass)
g_object_class_install_property
(
gobject_class
,
PROP_VALUE_IN_LIST
,
g_param_spec_boolean
(
"value
_
in
_
list"
,
g_param_spec_boolean
(
"value
-
in
-
list"
,
P_
(
"Value in list"
),
P_
(
"Whether entered values must already be present in the list"
),
FALSE
,
...
...
gtk/gtkcombobox.c
View file @
52711c24
...
...
@@ -564,7 +564,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_WRAP_WIDTH
,
g_param_spec_int
(
"wrap
_
width"
,
g_param_spec_int
(
"wrap
-
width"
,
P_
(
"Wrap width"
),
P_
(
"Wrap width for layouting the items in a grid"
),
0
,
...
...
@@ -587,7 +587,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_ROW_SPAN_COLUMN
,
g_param_spec_int
(
"row
_
span
_
column"
,
g_param_spec_int
(
"row
-
span
-
column"
,
P_
(
"Row span column"
),
P_
(
"TreeModel column containing the row span values"
),
-
1
,
...
...
@@ -609,7 +609,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
*/
g_object_class_install_property
(
object_class
,
PROP_COLUMN_SPAN_COLUMN
,
g_param_spec_int
(
"column
_
span
_
column"
,
g_param_spec_int
(
"column
-
span
-
column"
,
P_
(
"Column span column"
),
P_
(
"TreeModel column containing the column span values"
),
-
1
,
...
...
@@ -674,7 +674,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
g_object_class_install_property
(
object_class
,
PROP_FOCUS_ON_CLICK
,
g_param_spec_boolean
(
"focus
_
on
_
click"
,
g_param_spec_boolean
(
"focus
-
on
-
click"
,
P_
(
"Focus on click"
),
P_
(
"Whether the combo box grabs focus when it is clicked with the mouse"
),
TRUE
,
...
...
gtk/gtkcomboboxentry.c
View file @
52711c24
...
...
@@ -110,7 +110,7 @@ gtk_combo_box_entry_class_init (GtkComboBoxEntryClass *klass)
g_object_class_install_property
(
object_class
,
PROP_TEXT_COLUMN
,
g_param_spec_int
(
"text
_
column"
,
g_param_spec_int
(
"text
-
column"
,
P_
(
"Text Column"
),
P_
(
"A column in the data source model to get the strings from"
),
-
1
,
...
...
gtk/gtkctree.c
View file @
52711c24
...
...
@@ -404,11 +404,11 @@ gtk_ctree_class_init (GtkCTreeClass *klass)
klass
->
tree_move
=
real_tree_move
;
klass
->
change_focus_row_expansion
=
change_focus_row_expansion
;
gtk_object_add_arg_type
(
"GtkCTree::n
_
columns"
,
/* overrides GtkCList::n_columns!! */
gtk_object_add_arg_type
(
"GtkCTree::n
-
columns"
,
/* overrides GtkCList::n_columns!! */
GTK_TYPE_UINT
,
GTK_ARG_READWRITE
|
GTK_ARG_CONSTRUCT_ONLY
,
ARG_N_COLUMNS
);
gtk_object_add_arg_type
(
"GtkCTree::tree
_
column"
,
gtk_object_add_arg_type
(
"GtkCTree::tree
-
column"
,
GTK_TYPE_UINT
,
GTK_ARG_READWRITE
|
GTK_ARG_CONSTRUCT_ONLY
,
ARG_TREE_COLUMN
);
...
...
@@ -420,15 +420,15 @@ gtk_ctree_class_init (GtkCTreeClass *klass)
GTK_TYPE_UINT
,
GTK_ARG_READWRITE
,
ARG_SPACING
);
gtk_object_add_arg_type
(
"GtkCTree::show
_
stub"
,
gtk_object_add_arg_type
(
"GtkCTree::show
-
stub"
,
GTK_TYPE_BOOL
,
GTK_ARG_READWRITE
,
ARG_SHOW_STUB
);
gtk_object_add_arg_type
(
"GtkCTree::line
_
style"
,
gtk_object_add_arg_type
(
"GtkCTree::line
-
style"
,
GTK_TYPE_CTREE_LINE_STYLE
,
GTK_ARG_READWRITE
,
ARG_LINE_STYLE
);
gtk_object_add_arg_type
(
"GtkCTree::expander
_
style"
,
gtk_object_add_arg_type
(
"GtkCTree::expander
-
style"
,
GTK_TYPE_CTREE_EXPANDER_STYLE
,
GTK_ARG_READWRITE
,
ARG_EXPANDER_STYLE
);
...
...
gtk/gtkcurve.c
View file @
52711c24
...
...
@@ -119,7 +119,7 @@ gtk_curve_class_init (GtkCurveClass *class)
g_object_class_install_property
(
gobject_class
,
PROP_CURVE_TYPE
,
g_param_spec_enum
(
"curve
_
type"
,
g_param_spec_enum
(
"curve
-
type"
,
P_
(
"Curve type"
),
P_
(
"Is this curve linear, spline interpolated, or free-form"
),
GTK_TYPE_CURVE_TYPE
,
...
...
@@ -128,7 +128,7 @@ gtk_curve_class_init (GtkCurveClass *class)
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_MIN_X
,
g_param_spec_float
(
"min
_
x"
,
g_param_spec_float
(
"min
-
x"
,
P_
(
"Minimum X"
),
P_
(
"Minimum possible value for X"
),
-
G_MAXFLOAT
,
...
...
@@ -138,7 +138,7 @@ gtk_curve_class_init (GtkCurveClass *class)
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_MAX_X
,
g_param_spec_float
(
"max
_
x"
,
g_param_spec_float
(
"max
-
x"
,
P_
(
"Maximum X"
),
P_
(
"Maximum possible X value"
),
-
G_MAXFLOAT
,
...
...
@@ -148,7 +148,7 @@ gtk_curve_class_init (GtkCurveClass *class)
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_MIN_Y
,
g_param_spec_float
(
"min
_
y"
,
g_param_spec_float
(
"min
-
y"
,
P_
(
"Minimum Y"
),
P_
(
"Minimum possible value for Y"
),
-
G_MAXFLOAT
,
...
...
@@ -158,7 +158,7 @@ gtk_curve_class_init (GtkCurveClass *class)
G_PARAM_WRITABLE
));
g_object_class_install_property
(
gobject_class
,
PROP_MAX_Y
,
g_param_spec_float
(
"max
_
y"
,
g_param_spec_float
(
"max
-
y"
,
P_
(
"Maximum Y"
),
P_
(
"Maximum possible value for Y"
),
-
G_MAXFLOAT
,
...
...
gtk/gtkdialog.c
View file @
52711c24
...
...
@@ -144,7 +144,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
g_object_class_install_property
(
gobject_class
,
PROP_HAS_SEPARATOR
,
g_param_spec_boolean
(
"has
_
separator"
,
g_param_spec_boolean
(
"has
-
separator"
,
P_
(
"Has separator"
),
P_
(
"The dialog has a separator bar above its buttons"
),
TRUE
,
...
...
@@ -170,7 +170,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
G_TYPE_NONE
,
0
);
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"content
_
area
_
border"
,
g_param_spec_int
(
"content
-
area
-
border"
,
P_
(
"Content area border"
),
P_
(
"Width of border around the main dialog area"
),
0
,
...
...
@@ -178,7 +178,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
2
,
G_PARAM_READABLE
));
gtk_widget_class_install_style_property
(
widget_class
,
g_param_spec_int
(
"button
_
spacing"
,
g_param_spec_int
(
"button
-
spacing"
,
P_
(
"Button spacing"
),
P_
(
"Spacing between buttons"
),
0
,
...
...
@@ -187,7 +187,7 @@ gtk_dialog_class_init (GtkDialogClass *class)
G_PARAM_READABLE
));