mteb/BrightProStackoverflowRetrieval huggingface dataset:
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Widget ](class.Widget.html)

#####  Properties

[ app-paintable ](property.Widget.app-paintable.html) [ can-default
](property.Widget.can-default.html) [ can-focus ](property.Widget.can-
focus.html) [ composite-child ](property.Widget.composite-child.html) [
double-buffered ](property.Widget.double-buffered.html) [ events
](property.Widget.events.html) [ expand ](property.Widget.expand.html) [
focus-on-click ](property.Widget.focus-on-click.html) [ halign
](property.Widget.halign.html) [ has-default ](property.Widget.has-
default.html) [ has-focus ](property.Widget.has-focus.html) [ has-tooltip
](property.Widget.has-tooltip.html) [ height-request ](property.Widget.height-
request.html) [ hexpand ](property.Widget.hexpand.html) [ hexpand-set
](property.Widget.hexpand-set.html) [ is-focus ](property.Widget.is-
focus.html) [ margin ](property.Widget.margin.html) [ margin-bottom
](property.Widget.margin-bottom.html) [ margin-end ](property.Widget.margin-
end.html) [ margin-left ](property.Widget.margin-left.html) [ margin-right
](property.Widget.margin-right.html) [ margin-start ](property.Widget.margin-
start.html) [ margin-top ](property.Widget.margin-top.html) [ name
](property.Widget.name.html) [ no-show-all ](property.Widget.no-show-all.html)
[ opacity ](property.Widget.opacity.html) [ parent
](property.Widget.parent.html) [ receives-default ](property.Widget.receives-
default.html) [ scale-factor ](property.Widget.scale-factor.html) [ sensitive
](property.Widget.sensitive.html) [ style ](property.Widget.style.html) [
tooltip-markup ](property.Widget.tooltip-markup.html) [ tooltip-text
](property.Widget.tooltip-text.html) [ valign ](property.Widget.valign.html) [
vexpand ](property.Widget.vexpand.html) [ vexpand-set
](property.Widget.vexpand-set.html) [ visible ](property.Widget.visible.html)
[ width-request ](property.Widget.width-request.html) [ window
](property.Widget.window.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Widget ](class.Widget.html) :window

since: 2.14

####  Declaration

    
    
    property window: Gdk.Window [ read ]

####  Description  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkwidget.c#L1342 "go
to source location")

The widget’s window if it is realized, ` NULL ` otherwise.

Type: [ ` GdkWindow ` ](javascript:void\(0\))

Available since: 2.14

Getter method  |  [ ` gtk_widget_get_window() ` ](method.Widget.get_window.html)  
---|---  
  
####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **no**  
Construct  |  **no**  
Construct only  |  **no**
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Buildable ](iface.Buildable.html)

#####  Methods

[ add_child ](method.Buildable.add_child.html) [ construct_child
](method.Buildable.construct_child.html) [ custom_finished
](method.Buildable.custom_finished.html) [ custom_tag_end
](method.Buildable.custom_tag_end.html) [ custom_tag_start
](method.Buildable.custom_tag_start.html) [ get_internal_child
](method.Buildable.get_internal_child.html) [ get_name
](method.Buildable.get_name.html) [ parser_finished
](method.Buildable.parser_finished.html) [ set_buildable_property
](method.Buildable.set_buildable_property.html) [ set_name
](method.Buildable.set_name.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Method

#  [ Gtk ](index.html) [ Buildable ](iface.Buildable.html) set_name

since: 2.12

####  Declaration  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.h#L137
"go to source location")

    
    
    void
    gtk_buildable_set_name (
      GtkBuildable* buildable,
      const gchar* name
    )
    

`

####  Description  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.c#L51
"go to source location")

Sets the name of the ` buildable ` object.

Available since: 2.12

####  Parameters

` name `

    

_Type:_ ` const gchar* `

Name to set.

The data is owned by the caller of the method.  
---  
The value is a NUL terminated UTF-8 string.
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Dialog ](class.Dialog.html)

#####  Methods

[ add_action_widget ](method.Dialog.add_action_widget.html) [ add_button
](method.Dialog.add_button.html) [ add_buttons
](method.Dialog.add_buttons.html) [ get_action_area
](method.Dialog.get_action_area.html) [ get_content_area
](method.Dialog.get_content_area.html) [ get_header_bar
](method.Dialog.get_header_bar.html) [ get_response_for_widget
](method.Dialog.get_response_for_widget.html) [ get_widget_for_response
](method.Dialog.get_widget_for_response.html) [ response
](method.Dialog.response.html) [ run ](method.Dialog.run.html) [
set_alternative_button_order
](method.Dialog.set_alternative_button_order.html) [
set_alternative_button_order_from_array
](method.Dialog.set_alternative_button_order_from_array.html) [
set_default_response ](method.Dialog.set_default_response.html) [
set_response_sensitive ](method.Dialog.set_response_sensitive.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Method

#  [ Gtk ](index.html) [ Dialog ](class.Dialog.html) get_header_bar

since: 3.12

####  Declaration  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkdialog.h#L207 "go
to source location")

    
    
    GtkWidget*
    gtk_dialog_get_header_bar (
      GtkDialog* dialog
    )
    

`

####  Description  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkdialog.c#L1960 "go
to source location")

Returns the header bar of ` dialog ` . Note that the headerbar is only used by
the dialog if the ` GtkDialog:use-header-bar ` property is ` TRUE ` .

Available since: 3.12

####  Return value

_Type:_ [ ` GtkHeaderBar ` ](class.HeaderBar.html)

The header bar.

The returned data is owned by the instance.  
---
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Widget ](class.Widget.html)

#####  Properties

[ app-paintable ](property.Widget.app-paintable.html) [ can-default
](property.Widget.can-default.html) [ can-focus ](property.Widget.can-
focus.html) [ composite-child ](property.Widget.composite-child.html) [
double-buffered ](property.Widget.double-buffered.html) [ events
](property.Widget.events.html) [ expand ](property.Widget.expand.html) [
focus-on-click ](property.Widget.focus-on-click.html) [ halign
](property.Widget.halign.html) [ has-default ](property.Widget.has-
default.html) [ has-focus ](property.Widget.has-focus.html) [ has-tooltip
](property.Widget.has-tooltip.html) [ height-request ](property.Widget.height-
request.html) [ hexpand ](property.Widget.hexpand.html) [ hexpand-set
](property.Widget.hexpand-set.html) [ is-focus ](property.Widget.is-
focus.html) [ margin ](property.Widget.margin.html) [ margin-bottom
](property.Widget.margin-bottom.html) [ margin-end ](property.Widget.margin-
end.html) [ margin-left ](property.Widget.margin-left.html) [ margin-right
](property.Widget.margin-right.html) [ margin-start ](property.Widget.margin-
start.html) [ margin-top ](property.Widget.margin-top.html) [ name
](property.Widget.name.html) [ no-show-all ](property.Widget.no-show-all.html)
[ opacity ](property.Widget.opacity.html) [ parent
](property.Widget.parent.html) [ receives-default ](property.Widget.receives-
default.html) [ scale-factor ](property.Widget.scale-factor.html) [ sensitive
](property.Widget.sensitive.html) [ style ](property.Widget.style.html) [
tooltip-markup ](property.Widget.tooltip-markup.html) [ tooltip-text
](property.Widget.tooltip-text.html) [ valign ](property.Widget.valign.html) [
vexpand ](property.Widget.vexpand.html) [ vexpand-set
](property.Widget.vexpand-set.html) [ visible ](property.Widget.visible.html)
[ width-request ](property.Widget.width-request.html) [ window
](property.Widget.window.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Widget ](class.Widget.html) :is-focus

####  Declaration

    
    
    property is-focus: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **no**  
Construct only  |  **no**
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Window ](class.Window.html)

#####  Properties

[ accept-focus ](property.Window.accept-focus.html) [ application
](property.Window.application.html) [ attached-to ](property.Window.attached-
to.html) [ decorated ](property.Window.decorated.html) [ default-height
](property.Window.default-height.html) [ default-width
](property.Window.default-width.html) [ deletable
](property.Window.deletable.html) [ destroy-with-parent
](property.Window.destroy-with-parent.html) [ focus-on-map
](property.Window.focus-on-map.html) [ focus-visible ](property.Window.focus-
visible.html) [ gravity ](property.Window.gravity.html) [ has-resize-grip
](property.Window.has-resize-grip.html) [ has-toplevel-focus
](property.Window.has-toplevel-focus.html) [ hide-titlebar-when-maximized
](property.Window.hide-titlebar-when-maximized.html) [ icon
](property.Window.icon.html) [ icon-name ](property.Window.icon-name.html) [
is-active ](property.Window.is-active.html) [ is-maximized
](property.Window.is-maximized.html) [ mnemonics-visible
](property.Window.mnemonics-visible.html) [ modal
](property.Window.modal.html) [ resizable ](property.Window.resizable.html) [
resize-grip-visible ](property.Window.resize-grip-visible.html) [ role
](property.Window.role.html) [ screen ](property.Window.screen.html) [ skip-
pager-hint ](property.Window.skip-pager-hint.html) [ skip-taskbar-hint
](property.Window.skip-taskbar-hint.html) [ startup-id
](property.Window.startup-id.html) [ title ](property.Window.title.html) [
transient-for ](property.Window.transient-for.html) [ type
](property.Window.type.html) [ type-hint ](property.Window.type-hint.html) [
urgency-hint ](property.Window.urgency-hint.html) [ window-position
](property.Window.window-position.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Window ](class.Window.html) :modal

####  Declaration

    
    
    property modal: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

Getter method  |  [ ` gtk_window_get_modal() ` ](method.Window.get_modal.html)  
---|---  
Setter method  |  [ ` gtk_window_set_modal() ` ](method.Window.set_modal.html)  
  
####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **no**  
Construct only  |  **no**
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Window ](class.Window.html)

#####  Properties

[ accept-focus ](property.Window.accept-focus.html) [ application
](property.Window.application.html) [ attached-to ](property.Window.attached-
to.html) [ decorated ](property.Window.decorated.html) [ default-height
](property.Window.default-height.html) [ default-width
](property.Window.default-width.html) [ deletable
](property.Window.deletable.html) [ destroy-with-parent
](property.Window.destroy-with-parent.html) [ focus-on-map
](property.Window.focus-on-map.html) [ focus-visible ](property.Window.focus-
visible.html) [ gravity ](property.Window.gravity.html) [ has-resize-grip
](property.Window.has-resize-grip.html) [ has-toplevel-focus
](property.Window.has-toplevel-focus.html) [ hide-titlebar-when-maximized
](property.Window.hide-titlebar-when-maximized.html) [ icon
](property.Window.icon.html) [ icon-name ](property.Window.icon-name.html) [
is-active ](property.Window.is-active.html) [ is-maximized
](property.Window.is-maximized.html) [ mnemonics-visible
](property.Window.mnemonics-visible.html) [ modal
](property.Window.modal.html) [ resizable ](property.Window.resizable.html) [
resize-grip-visible ](property.Window.resize-grip-visible.html) [ role
](property.Window.role.html) [ screen ](property.Window.screen.html) [ skip-
pager-hint ](property.Window.skip-pager-hint.html) [ skip-taskbar-hint
](property.Window.skip-taskbar-hint.html) [ startup-id
](property.Window.startup-id.html) [ title ](property.Window.title.html) [
transient-for ](property.Window.transient-for.html) [ type
](property.Window.type.html) [ type-hint ](property.Window.type-hint.html) [
urgency-hint ](property.Window.urgency-hint.html) [ window-position
](property.Window.window-position.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Window ](class.Window.html) :default-height

####  Declaration

    
    
    property default-height: int [ read, write ]

####  Description

No description available.

Type: ` gint `

####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **no**  
Construct only  |  **no**
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Buildable ](iface.Buildable.html)

#####  Methods

[ add_child ](method.Buildable.add_child.html) [ construct_child
](method.Buildable.construct_child.html) [ custom_finished
](method.Buildable.custom_finished.html) [ custom_tag_end
](method.Buildable.custom_tag_end.html) [ custom_tag_start
](method.Buildable.custom_tag_start.html) [ get_internal_child
](method.Buildable.get_internal_child.html) [ get_name
](method.Buildable.get_name.html) [ parser_finished
](method.Buildable.parser_finished.html) [ set_buildable_property
](method.Buildable.set_buildable_property.html) [ set_name
](method.Buildable.set_name.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Method

#  [ Gtk ](index.html) [ Buildable ](iface.Buildable.html) add_child

since: 2.12

####  Declaration  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.h#L142
"go to source location")

    
    
    void
    gtk_buildable_add_child (
      GtkBuildable* buildable,
      GtkBuilder* builder,
      GObject* child,
      const gchar* type
    )
    

`

####  Description  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.c#L110
"go to source location")

Adds a child to ` buildable ` . ` type ` is an optional string describing how
the child should be added.

Available since: 2.12

####  Parameters

` builder `

    

_Type:_ [ ` GtkBuilder ` ](class.Builder.html)

A ` GtkBuilder ` .

The data is owned by the caller of the method.  
---  
` child `

    

_Type:_ [ ` GObject ` ](javascript:void\(0\))

Child to add.

The data is owned by the caller of the method.  
---  
` type `

    

_Type:_ ` const gchar* `

Kind of child or ` NULL ` .

The argument can be ` NULL ` .  
---  
The data is owned by the caller of the method.  
The value is a NUL terminated UTF-8 string.
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Buildable ](iface.Buildable.html)

#####  Methods

[ add_child ](method.Buildable.add_child.html) [ construct_child
](method.Buildable.construct_child.html) [ custom_finished
](method.Buildable.custom_finished.html) [ custom_tag_end
](method.Buildable.custom_tag_end.html) [ custom_tag_start
](method.Buildable.custom_tag_start.html) [ get_internal_child
](method.Buildable.get_internal_child.html) [ get_name
](method.Buildable.get_name.html) [ parser_finished
](method.Buildable.parser_finished.html) [ set_buildable_property
](method.Buildable.set_buildable_property.html) [ set_name
](method.Buildable.set_name.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Method

#  [ Gtk ](index.html) [ Buildable ](iface.Buildable.html) get_internal_child

since: 2.12

####  Declaration  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.h#L178
"go to source location")

    
    
    GObject*
    gtk_buildable_get_internal_child (
      GtkBuildable* buildable,
      GtkBuilder* builder,
      const gchar* childname
    )
    

`

####  Description  [ [src]
](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkbuildable.c#L328
"go to source location")

Get the internal child called ` childname ` of the ` buildable ` object.

Available since: 2.12

####  Parameters

` builder `

    

_Type:_ [ ` GtkBuilder ` ](class.Builder.html)

A ` GtkBuilder ` .

The data is owned by the caller of the method.  
---  
` childname `

    

_Type:_ ` const gchar* `

Name of child.

The data is owned by the caller of the method.  
---  
The value is a NUL terminated UTF-8 string.  
  
####  Return value

_Type:_ [ ` GObject ` ](javascript:void\(0\))

The internal child of the buildable object.

The returned data is owned by the instance.  
---
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Widget ](class.Widget.html)

#####  Properties

[ app-paintable ](property.Widget.app-paintable.html) [ can-default
](property.Widget.can-default.html) [ can-focus ](property.Widget.can-
focus.html) [ composite-child ](property.Widget.composite-child.html) [
double-buffered ](property.Widget.double-buffered.html) [ events
](property.Widget.events.html) [ expand ](property.Widget.expand.html) [
focus-on-click ](property.Widget.focus-on-click.html) [ halign
](property.Widget.halign.html) [ has-default ](property.Widget.has-
default.html) [ has-focus ](property.Widget.has-focus.html) [ has-tooltip
](property.Widget.has-tooltip.html) [ height-request ](property.Widget.height-
request.html) [ hexpand ](property.Widget.hexpand.html) [ hexpand-set
](property.Widget.hexpand-set.html) [ is-focus ](property.Widget.is-
focus.html) [ margin ](property.Widget.margin.html) [ margin-bottom
](property.Widget.margin-bottom.html) [ margin-end ](property.Widget.margin-
end.html) [ margin-left ](property.Widget.margin-left.html) [ margin-right
](property.Widget.margin-right.html) [ margin-start ](property.Widget.margin-
start.html) [ margin-top ](property.Widget.margin-top.html) [ name
](property.Widget.name.html) [ no-show-all ](property.Widget.no-show-all.html)
[ opacity ](property.Widget.opacity.html) [ parent
](property.Widget.parent.html) [ receives-default ](property.Widget.receives-
default.html) [ scale-factor ](property.Widget.scale-factor.html) [ sensitive
](property.Widget.sensitive.html) [ style ](property.Widget.style.html) [
tooltip-markup ](property.Widget.tooltip-markup.html) [ tooltip-text
](property.Widget.tooltip-text.html) [ valign ](property.Widget.valign.html) [
vexpand ](property.Widget.vexpand.html) [ vexpand-set
](property.Widget.vexpand-set.html) [ visible ](property.Widget.visible.html)
[ width-request ](property.Widget.width-request.html) [ window
](property.Widget.window.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Widget ](class.Widget.html) :sensitive

####  Declaration

    
    
    property sensitive: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

Getter method  |  [ ` gtk_widget_get_sensitive() ` ](method.Widget.get_sensitive.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_sensitive() ` ](method.Widget.set_sensitive.html)  
  
####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **no**  
Construct only  |  **no**
![](gtk-logo.svg)

###  [ Gtk ](index.html)

API Version: 3.0

Library Version: 3.24

#####  Type

[ Window ](class.Window.html)

#####  Properties

[ accept-focus ](property.Window.accept-focus.html) [ application
](property.Window.application.html) [ attached-to ](property.Window.attached-
to.html) [ decorated ](property.Window.decorated.html) [ default-height
](property.Window.default-height.html) [ default-width
](property.Window.default-width.html) [ deletable
](property.Window.deletable.html) [ destroy-with-parent
](property.Window.destroy-with-parent.html) [ focus-on-map
](property.Window.focus-on-map.html) [ focus-visible ](property.Window.focus-
visible.html) [ gravity ](property.Window.gravity.html) [ has-resize-grip
](property.Window.has-resize-grip.html) [ has-toplevel-focus
](property.Window.has-toplevel-focus.html) [ hide-titlebar-when-maximized
](property.Window.hide-titlebar-when-maximized.html) [ icon
](property.Window.icon.html) [ icon-name ](property.Window.icon-name.html) [
is-active ](property.Window.is-active.html) [ is-maximized
](property.Window.is-maximized.html) [ mnemonics-visible
](property.Window.mnemonics-visible.html) [ modal
](property.Window.modal.html) [ resizable ](property.Window.resizable.html) [
resize-grip-visible ](property.Window.resize-grip-visible.html) [ role
](property.Window.role.html) [ screen ](property.Window.screen.html) [ skip-
pager-hint ](property.Window.skip-pager-hint.html) [ skip-taskbar-hint
](property.Window.skip-taskbar-hint.html) [ startup-id
](property.Window.startup-id.html) [ title ](property.Window.title.html) [
transient-for ](property.Window.transient-for.html) [ type
](property.Window.type.html) [ type-hint ](property.Window.type-hint.html) [
urgency-hint ](property.Window.urgency-hint.html) [ window-position
](property.Window.window-position.html)

Generated by [ gi-docgen ](https://gitlab.gnome.org/GNOME/gi-docgen) 2023.4

###  Property

#  [ Gtk ](index.html) [ Window ](class.Window.html) :type

####  Declaration

    
    
    property type: Gtk.WindowType [ read, write, construct-only ]

####  Description

No description available.

Type: [ ` GtkWindowType ` ](enum.WindowType.html)

####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **no**  
Construct only  |  **yes**