Commit Graph

3378 Commits

Author SHA1 Message Date
Matthias Clasen
9822d510a6 GtkMenuButton: Support popovers
Add api to allow explicitly setting a GtkPopover instead of
a GtkMenu as the popup of a GtkMenuButton. Also, add api to
instruct the menu button to construct a popover when given
a menu model.

We set the style class "menu-button" on the button only when
it pops up a menu, to allow different treatment for the active
state of the button in the two cases.

https://bugzilla.gnome.org/show_bug.cgi?id=723878
2014-02-08 20:42:20 -05:00
Matthias Clasen
2fea2d4dbd Populate popovers from menu models
This adds a new function, gtk_popover_new_from_model, which creates
a popover and populates it with suitable content according to the
menu model. The current implementation uses GtkModelButton for the
individual items, and a GtkStack for submenus.

https://bugzilla.gnome.org/show_bug.cgi?id=723014
2014-02-07 15:11:51 -05:00
Matthias Clasen
2b95d1a34e Introduce API to get the preferred visual
Unless GDK_RGBA=0 is set, this will be the RGBA visual.
The new function is called gdk_screen_get_preferred_visual().

https://bugzilla.gnome.org/show_bug.cgi?id=630217
2014-02-04 13:15:46 -05:00
Matthias Clasen
15060a8f24 Revert "gdk: enable rgba visuals by default"
This reverts commit a2ccb6601e.

This turns out to break GtkStatusIcon, and invalidates
the documentation of gdk_screen_get_system_visual().
2014-02-04 13:15:46 -05:00
Matthias Clasen
668c31bf97 Build gtk-doc scanner without deprecation warnings
Use of deprecated symbols is expected in this code,
no need to warn about it.
2014-01-23 21:09:24 -05:00
William Jon McCann
a2ccb6601e gdk: enable rgba visuals by default
Unless GDK_RGBA=0 is set.

https://bugzilla.gnome.org/show_bug.cgi?id=630217
2014-01-23 11:51:51 -05:00
Carlos Garnacho
168227165d window: Make popover window private 2014-01-22 17:10:07 +01:00
Carlos Garnacho
1d495cbafd popover: Add a "modal" boolean property to GtkPopover
This property is TRUE by default, when a popover is modal, it
will automatically set a GTK+ grab on the popover, and grab
the keyboard focus into the popover.
2014-01-22 17:10:06 +01:00
Carlos Garnacho
ace25368b1 window: Add gtk_window_get_popover_position()
A getter to complement the setter
2014-01-22 17:10:05 +01:00
Carlos Garnacho
bb7ef098c4 popover: Add documentation 2014-01-22 17:10:05 +01:00
William Jon McCann
9401381e29 docs: don't use property syntax for child properties 2014-01-21 23:20:38 -05:00
William Jon McCann
fa6ace97aa docs: don't try to link vfunc 2014-01-21 22:40:55 -05:00
William Jon McCann
5a4a99a97f docs: fix links to docs 2014-01-21 22:40:55 -05:00
William Jon McCann
ddfaa941f9 docs: remove missing link 2014-01-21 18:57:41 -05:00
William Jon McCann
bc01196575 docs: remove reference to removed flags 2014-01-21 18:57:41 -05:00
William Jon McCann
afec0c0eed docs: fix bindings docs link 2014-01-21 18:57:41 -05:00
William Jon McCann
41749a4cb7 docs: don't try to link to non-API types 2014-01-21 18:57:41 -05:00
William Jon McCann
c5de7c62ff docs: don't use signal syntax for vfuncs 2014-01-21 18:57:41 -05:00
William Jon McCann
43fa9fef25 docs: don't use property syntax for style property 2014-01-21 18:57:41 -05:00
William Jon McCann
ec3c6484e0 docs: don't link to removed types 2014-01-21 18:57:40 -05:00
William Jon McCann
1d756d561b docs: separate suffix from type 2014-01-21 18:57:40 -05:00
William Jon McCann
6c4fea1e78 docs: don't use signal syntax for properties 2014-01-21 18:57:40 -05:00
William Jon McCann
a5696fe6d4 docs: don't use signal syntax for child properties 2014-01-21 18:57:40 -05:00
William Jon McCann
29230c3fb9 docs: use function instead of removed macro 2014-01-21 18:57:40 -05:00
William Jon McCann
a17469f83b docs: GDK_WINDOWING is not a type 2014-01-21 18:57:40 -05:00
William Jon McCann
650d25cdaf docs: add GTK_TREE_SORTABLE_*_COLUMN_ID to docs 2014-01-21 18:57:38 -05:00
William Jon McCann
2b89136abd docs: add GtkBaselinePosition to docs 2014-01-21 18:57:37 -05:00
William Jon McCann
43c515bb5b docs: remove spurious i from vim user 2014-01-21 18:57:37 -05:00
William Jon McCann
d641af49cf docs: try harder to suppress missing link warnings 2014-01-21 18:57:36 -05:00
William Jon McCann
97ca1e7844 docs: don't try to link to bind_textdomain_codeset() docs 2014-01-21 18:12:50 -05:00
William Jon McCann
2a5f70d3e6 docs: GSettingsAction is not a thing 2014-01-21 18:12:50 -05:00
William Jon McCann
8d99b51863 docs: make function looking thing a literal 2014-01-21 18:12:50 -05:00
William Jon McCann
9f808e9771 docs: fix gtk_widget_class_bind_template_child_private link 2014-01-21 18:12:50 -05:00
William Jon McCann
035005ae1f docs: make _from_resource() a literal
So it doesn't get expanded to a function link.
2014-01-21 18:12:50 -05:00
William Jon McCann
22570c6732 docs: remove link to window-no-window-widgets 2014-01-21 18:12:50 -05:00
William Jon McCann
289d77a2d2 docs: remove duplicate methods from sections 2014-01-21 13:33:45 -05:00
William Jon McCann
50ab5783f6 docs: remove duplicate methods 2014-01-21 12:41:16 -05:00
William Jon McCann
4128d6155a docs: add GdkFrameClock to types 2014-01-20 18:39:24 -05:00
William Jon McCann
826251466d docs: add GdkModifierIntent to docs 2014-01-20 18:27:29 -05:00
William Jon McCann
83e8e38bd2 wayland: fix rename of wl_shell to xdg_shell
Regression from 9127087e1c
2014-01-20 14:37:33 -05:00
William Jon McCann
921137540c docs: add missing docs for GDK_DISABLE_DEPRECATION_WARNINGS 2014-01-20 14:28:04 -05:00
William Jon McCann
c6e72c4936 docs: add missing overrides for QUARTZ and WAYLAND 2014-01-20 13:41:40 -05:00
William Jon McCann
998af41bc0 docs: put GtkWindow above subclasses 2014-01-20 12:44:29 -05:00
William Jon McCann
add1ca00f4 docs: add Gtk*Class docs
https://bugzilla.gnome.org/show_bug.cgi?id=81006
2014-01-20 12:31:21 -05:00
William Jon McCann
9640eccd14 dialog: Add a headerbar
This change makes it possible for GtkDialog to pack
its action widgets into a header bar, instead of the
traditional action area. This change is controlled
by the use-header-bar construct-only property.

https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:07 -05:00
Cosimo Cecchi
197785744b window: add an is-maximized property to GtkWindow
With proper notifications, plus an accessor method for that state. This
allows client to just listen to notify::is-maximized instead of tracking
window-state-event.

https://bugzilla.gnome.org/show_bug.cgi?id=698786
2014-01-13 23:13:37 -05:00
William Hua
fd13713230 GtkIconInfo: add gtk_icon_info_is_symbolic()
https://bugzilla.gnome.org/show_bug.cgi?id=710351
2014-01-08 02:10:14 -05:00
William Jon McCann
e72aca055d Add GtkActionBar
A widget intended to offer contextual actions for a given view.
It allows packing children into the start or end as well as offering
a single centered child box.

https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
Simon Feltman
efa8956718 Add introspection friendly version of gtk_tree_path_new_from_indices
Add gtk_tree_path_new_from_indicesv which takes an array of
integers with a length. Use "Rename to" annotation to rename the
method as gtk_tree_path_new_from_indices. This is needed because
the original method takes variadic arguments which is not supported
by introspection.

https://bugzilla.gnome.org/show_bug.cgi?id=706119
2014-01-05 11:23:41 -08:00
Matthias Clasen
7e3f68d950 GtkAccelLabel: Add a setter for manual accels
This is needed to keep the a11y keybinding code working.
2014-01-05 11:12:09 -05:00