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) :visible

####  Declaration

    
    
    property visible: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

Getter method  |  [ ` gtk_widget_get_visible() ` ](method.Widget.get_visible.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_visible() ` ](method.Widget.set_visible.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) :margin-right

deprecated: 3.12  since: 3.0

####  Declaration

    
    
    property margin-right: int [ read, write ]

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

Margin on right side of widget.

This property adds margin outside of the widget’s normal size request, the
margin will be added in addition to the size from `
gtk_widget_set_size_request() ` for example.

Type: ` gint `

Available since: 3.0

Deprecated since: 3.12

Use ` GtkWidget:margin-end ` instead.

Getter method  |  [ ` gtk_widget_get_margin_right() ` ](method.Widget.get_margin_right.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_margin_right() ` ](method.Widget.set_margin_right.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-width

####  Declaration

    
    
    property default-width: 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

[ 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) :resizable

####  Declaration

    
    
    property resizable: gboolean [ read, write ]

####  Description

No description available.

Type: ` gboolean `

Getter method  |  [ ` gtk_window_get_resizable() ` ](method.Window.get_resizable.html)  
---|---  
Setter method  |  [ ` gtk_window_set_resizable() ` ](method.Window.set_resizable.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) get_name

since: 2.12

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

    
    
    const gchar*
    gtk_buildable_get_name (
      GtkBuildable* buildable
    )
    

`

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

Gets the name of the ` buildable ` object.

` GtkBuilder ` sets the name based on the [GtkBuilder  UI  definition][
BUILDER  -  UI  ] used to construct the ` buildable ` .

Available since: 2.12

####  Return value

_Type:_ ` const gchar* `

The name set with ` gtk_buildable_set_name() `

The returned data is owned by the instance.  
---  
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)
set_buildable_property

since: 2.12

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

    
    
    void
    gtk_buildable_set_buildable_property (
      GtkBuildable* buildable,
      GtkBuilder* builder,
      const gchar* name,
      const GValue* value
    )
    

`

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

Sets the property name ` name ` to ` value ` on 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.  
---  
` name `

    

_Type:_ ` const gchar* `

Name of property.

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

    

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

Value of property.

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

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

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

    
    
    GtkWidget*
    gtk_dialog_add_button (
      GtkDialog* dialog,
      const gchar* button_text,
      gint response_id
    )
    

`

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

Adds a button with the given text and sets things up so that clicking the
button will emit the ` GtkDialog::response ` signal with the given `
response_id ` . The button is appended to the end of the dialog’s action area.
The button widget is returned, but usually you don’t need it.

####  Parameters

` button_text `

    

_Type:_ ` const gchar* `

Text of button.

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

    

_Type:_ ` gint `

Response  ID  for the button.

####  Return value

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

The ` GtkButton ` widget that was added.

The returned data is owned by the instance.  
---
![](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) :application

since: 3.0

####  Declaration

    
    
    property application: Gtk.Application [ read, write ]

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

The ` GtkApplication ` associated with the window.

The application will be kept alive for at least as long as it has any windows
associated with it (see ` g_application_hold() ` for a way to keep it alive
without windows).

Normally, the connection between the application and the window will remain
until the window is destroyed, but you can explicitly remove it by setting the
:application property to ` NULL ` .

Type: [ ` GtkApplication ` ](class.Application.html)

Available since: 3.0

Getter method  |  [ ` gtk_window_get_application() ` ](method.Window.get_application.html)  
---|---  
Setter method  |  [ ` gtk_window_set_application() ` ](method.Window.set_application.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) :focus-on-click

since: 3.20

####  Declaration

    
    
    property focus-on-click: gboolean [ read, write ]

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

Whether the widget should grab focus when it is clicked with the mouse.

This property is only relevant for widgets that can take focus.

Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox)
implemented this property individually.

Type: ` gboolean `

Available since: 3.20

Getter method  |  [ ` gtk_widget_get_focus_on_click() ` ](method.Widget.get_focus_on_click.html)  
---|---  
Setter method  |  [ ` gtk_widget_set_focus_on_click() ` ](method.Widget.set_focus_on_click.html)  
  
####  Flags

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