mteb/BrightProStackoverflowRetrieval huggingface dataset:
![](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) :transient-for

since: 2.10

####  Declaration

    
    
    property transient-for: Gtk.Window [ read, write, construct ]

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

The transient parent of the window. See ` gtk_window_set_transient_for() ` for
more details about transient windows.

Type: [ ` GtkWindow ` ](class.Window.html)

Available since: 2.10

Getter method  |  [ ` gtk_window_get_transient_for() ` ](method.Window.get_transient_for.html)  
---|---  
Setter method  |  [ ` gtk_window_set_transient_for() ` ](method.Window.set_transient_for.html)  
  
####  Flags

Readable  |  **yes**  
---|---  
Writable  |  **yes**  
Construct  |  **yes**  
Construct only  |  **no**
![](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) :style

deprecated: Unknown

####  Declaration

    
    
    property style: Gtk.Style [ read, write ]

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

The style of the widget, which contains information about how it will look
(colors, etc).

Type: [ ` GtkStyle ` ](class.Style.html)

Deprecated since: Unknown

Use ` GtkStyleContext ` instead.

Getter method  |  [ ` gtk_widget_get_style() ` ](method.Widget.get_style.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_style() ` ](method.Widget.set_style.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

[ 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) set_default_response

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

    
    
    void
    gtk_dialog_set_default_response (
      GtkDialog* dialog,
      gint response_id
    )
    

`

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

Sets the last widget in the dialog’s action area with the given ` response_id
` as the default widget for the dialog. Pressing “Enter” normally activates
the default widget.

####  Parameters

` response_id `

    

_Type:_ ` gint `

A response  ID  .
![](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) :decorated

since: 2.4

####  Declaration

    
    
    property decorated: gboolean [ read, write ]

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

Whether the window should be decorated by the window manager.

Type: ` gboolean `

Available since: 2.4

Getter method  |  [ ` gtk_window_get_decorated() ` ](method.Window.get_decorated.html)  
---|---  
Setter method  |  [ ` gtk_window_set_decorated() ` ](method.Window.set_decorated.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

[ 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_widget_for_response

since: 2.20

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

    
    
    GtkWidget*
    gtk_dialog_get_widget_for_response (
      GtkDialog* dialog,
      gint response_id
    )
    

`

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

Gets the widget button that uses the given response  ID  in the action area of
a dialog.

Available since: 2.20

####  Parameters

` response_id `

    

_Type:_ ` gint `

The response  ID  used by the ` dialog ` widget.

####  Return value

_Type:_ [ ` GtkWidget ` ](class.Widget.html)

The ` widget ` button that uses the given ` response_id ` , or ` NULL ` .

The returned data is owned by the instance.  
---  
The return value can be ` NULL ` .
![](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) :double-buffered

deprecated: 3.14  since: 2.18

####  Declaration

    
    
    property double-buffered: gboolean [ read, write ]

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

Whether the widget is double buffered.

Type: ` gboolean `

Available since: 2.18

Deprecated since: 3.14

Widgets should not use this property.

Getter method  |  [ ` gtk_widget_get_double_buffered() ` ](method.Widget.get_double_buffered.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_double_buffered() ` ](method.Widget.set_double_buffered.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

[ 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) :can-default

####  Declaration

    
    
    property can-default: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

Getter method  |  [ ` gtk_widget_get_can_default() ` ](method.Widget.get_can_default.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_can_default() ` ](method.Widget.set_can_default.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

[ 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) parser_finished

since: 2.12

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

    
    
    void
    gtk_buildable_parser_finished (
      GtkBuildable* buildable,
      GtkBuilder* builder
    )
    

`

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

Called when the builder finishes the parsing of a [GtkBuilder  UI
definition][  BUILDER  -  UI  ]. Note that this will be called once for each
time ` gtk_builder_add_from_file() ` or ` gtk_builder_add_from_string() ` is
called on a builder.

Available since: 2.12

####  Parameters

` builder `

    

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

A ` GtkBuilder ` .

The data is owned by the caller of the method.  
---
![](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) :hexpand

since: 3.0

####  Declaration

    
    
    property hexpand: gboolean [ read, write ]

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

Whether to expand horizontally. See gtk_widget_set_hexpand().

Type: ` gboolean `

Available since: 3.0

Getter method  |  [ ` gtk_widget_get_hexpand() ` ](method.Widget.get_hexpand.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_hexpand() ` ](method.Widget.set_hexpand.html)  
  
####  Flags

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