Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikita Churaev
gtk
Commits
a76d1985
Commit
a76d1985
authored
Aug 14, 2010
by
Javier Jardón
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GtkWidget: Move public members to private structure
parent
efaed1b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
491 additions
and
316 deletions
+491
-316
docs/reference/gtk/gtk3-sections.txt
docs/reference/gtk/gtk3-sections.txt
+1
-0
gtk/gtkwidget.c
gtk/gtkwidget.c
+488
-269
gtk/gtkwidget.h
gtk/gtkwidget.h
+2
-47
No files found.
docs/reference/gtk/gtk3-sections.txt
View file @
a76d1985
...
...
@@ -4970,6 +4970,7 @@ GTK_IS_WIDGET_CLASS
GTK_WIDGET_GET_CLASS
GTK_TYPE_REQUISITION
<SUBSECTION Private>
GtkWidgetPrivate
gtk_widget_get_type
gtk_requisition_get_type
</SECTION>
...
...
gtk/gtkwidget.c
View file @
a76d1985
This diff is collapsed.
Click to expand it.
gtk/gtkwidget.h
View file @
a76d1985
...
...
@@ -196,6 +196,7 @@ typedef enum
*/
typedef
struct
_GtkRequisition
GtkRequisition
;
typedef
struct
_GtkSelectionData
GtkSelectionData
;
typedef
struct
_GtkWidgetPrivate
GtkWidgetPrivate
;
typedef
struct
_GtkWidgetClass
GtkWidgetClass
;
typedef
struct
_GtkWidgetAuxInfo
GtkWidgetAuxInfo
;
typedef
struct
_GtkWidgetShapeInfo
GtkWidgetShapeInfo
;
...
...
@@ -260,53 +261,7 @@ struct _GtkWidget
/* internally used private flags. */
guint
GSEAL
(
private_flags
)
:
16
;
/* The state of the widget. There are only
* 5 widget states (defined in "gtkenums.h")
* so 3 bits.
*/
guint
GSEAL
(
state
)
:
3
;
/* The saved state of the widget. When a widget's state
* is changed to GTK_STATE_INSENSITIVE via
* "gtk_widget_set_state" or "gtk_widget_set_sensitive"
* the old state is kept around in this field. The state
* will be restored once the widget gets sensitive again.
*/
guint
GSEAL
(
saved_state
)
:
3
;
/* unused bits in our 32-bit block */
guint
GSEAL
(
reserved
)
:
10
;
/* The widget's name. If the widget does not have a name
* (the name is NULL), then its name (as returned by
* "gtk_widget_get_name") is its class's name.
* Among other things, the widget name is used to determine
* the style to use for a widget.
*/
gchar
*
GSEAL
(
name
);
/*< public >*/
/* The style for the widget. The style contains the
* colors the widget should be drawn in for each state
* along with graphics contexts used to draw with and
* the font to use for text.
*/
GtkStyle
*
GSEAL
(
style
);
/* The widget's allocated size.
*/
GtkAllocation
GSEAL
(
allocation
);
/* The widget's window or its parent window if it does
* not have a window. (Which will be indicated by the
* GTK_NO_WINDOW flag being set).
*/
GdkWindow
*
GSEAL
(
window
);
/* The widget's parent.
*/
GtkWidget
*
GSEAL
(
parent
);
GtkWidgetPrivate
*
priv
;
};
/**
...
...
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