Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,151
Issues
1,151
List
Boards
Labels
Service Desk
Milestones
Merge Requests
142
Merge Requests
142
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
d76c0783
Commit
d76c0783
authored
May 31, 2016
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document GtkSizeGroup::ignore-hidden as broken
...and deprecate it, recommending GtkStack as an alternative.
parent
69f8b4bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
gtk/gtksizegroup.c
gtk/gtksizegroup.c
+25
-4
gtk/gtksizegroup.h
gtk/gtksizegroup.h
+2
-2
No files found.
gtk/gtksizegroup.c
View file @
d76c0783
...
...
@@ -235,10 +235,17 @@ gtk_size_group_class_init (GtkSizeGroupClass *klass)
/**
* GtkSizeGroup:ignore-hidden:
*
* If %TRUE, unmapped widgets are ignored when determining
* If %TRUE, unmapped widgets are ignored when determining
* the size of the group.
*
* Since: 2.8
*
* Deprecated: 3.22: Measuring the size of hidden widgets has not worked
* reliably for a long time. In most cases, they will report a size
* of 0 nowadays, and thus, their size will not affect the other
* size group members. In effect, size groups will always operate
* as if this property was %TRUE. Use a #GtkStack instead to hide
* widgets while still having their size taken into account.
*/
g_object_class_install_property
(
gobject_class
,
PROP_IGNORE_HIDDEN
,
...
...
@@ -247,7 +254,7 @@ gtk_size_group_class_init (GtkSizeGroupClass *klass)
P_
(
"If TRUE, unmapped widgets are ignored "
"when determining the size of the group"
),
FALSE
,
GTK_PARAM_READWRITE
|
G_PARAM_EXPLICIT_NOTIFY
));
GTK_PARAM_READWRITE
|
G_PARAM_EXPLICIT_NOTIFY
|
G_PARAM_DEPRECATED
));
}
static
void
...
...
@@ -389,11 +396,18 @@ gtk_size_group_get_mode (GtkSizeGroup *size_group)
* @size_group: a #GtkSizeGroup
* @ignore_hidden: whether unmapped widgets should be ignored
* when calculating the size
*
*
* Sets whether unmapped widgets should be ignored when
* calculating the size.
*
* Since: 2.8
* Since: 2.8
*
* Deprecated: 3.22: Measuring the size of hidden widgets has not worked
* reliably for a long time. In most cases, they will report a size
* of 0 nowadays, and thus, their size will not affect the other
* size group members. In effect, size groups will always operate
* as if this property was %TRUE. Use a #GtkStack instead to hide
* widgets while still having their size taken into account.
*/
void
gtk_size_group_set_ignore_hidden
(
GtkSizeGroup
*
size_group
,
...
...
@@ -424,6 +438,13 @@ gtk_size_group_set_ignore_hidden (GtkSizeGroup *size_group,
* Returns: %TRUE if invisible widgets are ignored.
*
* Since: 2.8
*
* Deprecated: 3.22: Measuring the size of hidden widgets has not worked
* reliably for a long time. In most cases, they will report a size
* of 0 nowadays, and thus, their size will not affect the other
* size group members. In effect, size groups will always operate
* as if this property was %TRUE. Use a #GtkStack instead to hide
* widgets while still having their size taken into account.
*/
gboolean
gtk_size_group_get_ignore_hidden
(
GtkSizeGroup
*
size_group
)
...
...
gtk/gtksizegroup.h
View file @
d76c0783
...
...
@@ -68,10 +68,10 @@ void gtk_size_group_set_mode (GtkSizeGroup *size_group,
GtkSizeGroupMode
mode
);
GDK_AVAILABLE_IN_ALL
GtkSizeGroupMode
gtk_size_group_get_mode
(
GtkSizeGroup
*
size_group
);
GDK_
AVAILABLE_IN_ALL
GDK_
DEPRECATED_IN_3_22
void
gtk_size_group_set_ignore_hidden
(
GtkSizeGroup
*
size_group
,
gboolean
ignore_hidden
);
GDK_
AVAILABLE_IN_ALL
GDK_
DEPRECATED_IN_3_22
gboolean
gtk_size_group_get_ignore_hidden
(
GtkSizeGroup
*
size_group
);
GDK_AVAILABLE_IN_ALL
void
gtk_size_group_add_widget
(
GtkSizeGroup
*
size_group
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment