summaryrefslogtreecommitdiff
path: root/gtk/gtkmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug 663856 - Make option-foo accelerators use the right symbolMichael Natterer2011-11-181-6/+8
| | | | | | | | | | | | | | | | | If the keyboard group shifting modifier is *also* a normal accelerator modifier, we need to special case it when calling gdk_keymap_translate_keyboard_state(), so we get the right key symbol for accelerators (for example we want Option-O, not Option-Ø displayed in menu items). This patch should only affect quartz where the Alt key both shifts the group and can be used as accel modifier, and not X11 or Win32 where AltGr is not used for accelerators. - fix quartz' gdk_keymap_translate_keyboard_state() to return the right consumed_modifiers - add _gtk_translate_keyboard_accel_state() which does the special casing - use it everywhere instead of gdk_keymap_translate_keyboard_state()
* Move wholly deprecated files to a subdirectoryMatthias Clasen2011-11-011-1/+1
| | | | Also install their headers to a subdirectory.
* Don't use *DISABLE_DEPRECATED guardsMatthias Clasen2011-11-011-1/+0
| | | | Instead define GDK_DISABLE_DEPRECATION_WARNINGS where appropriate.
* menu: Deprecate GtkTearoffMenuItemBenjamin Otte2011-10-011-1/+5
|
* More include cleanupsMatthias Clasen2011-08-281-1/+1
|
* Convert GailMenu to GtkMenuAccessibleMatthias Clasen2011-07-051-0/+3
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-1/+1
|
* gtk: Clean some includesJavier Jardón2011-06-081-1/+1
|
* gtkwidget: Move private functions to private headerJavier Jardón2011-06-041-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=651707
* menu: Realize window before positioningBenjamin Otte2011-05-251-3/+5
| | | | | | We want the menu realized so we know the size it's allocating to itself. And we need that size to position the menu properly. This is best visible on right-to-left.
* menu: Only realize menu if it isn't realized yetBenjamin Otte2011-05-191-0/+1
| | | | | | | | | | | Lots of code calls gtk_menu_popup() and we don't want to resize the window needlessly. In this particular case, keyboard navigation to submenus caused those submenus to shrink. Note: I'm not sure this fix doesn't have nasty side effects, as I'm not a specialist on menu popup code, so if it does, we'll need to revert it. Until then, let's keep it, it fixes a bug.
* menu: don't use the border as a padding valueCosimo Cecchi2011-05-181-95/+56
| | | | | | | Borders should be rendered inside the allocation, not act as a second padding. https://bugzilla.gnome.org/show_bug.cgi?id=650418
* [gi] don't skip gtk_menu_attach_to_widget, correctly annotate the async callbackJohn (J5) Palmieri2011-03-031-3/+3
|
* Minor documentation improvementsMurray Cumming2011-02-231-1/+1
| | | | Mostly correcting it's to its and changing some , to .
* Add some missing symbols to the docsMatthias Clasen2011-02-081-5/+8
|
* Always chain up in ::style-updatedMatthias Clasen2011-02-071-0/+2
| | | | | This was not handled consistently, but the default handler does useful things, so we should always chain up.
* Silence new gcc warningsMatthias Clasen2011-01-231-15/+4
| | | | | gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
* [GI] Mark unintrospectable constructs as (skip)Pavel Holejsovsky2011-01-201-5/+5
| | | | | Also adds 'Rename to:' annotation to some constructs replacing the skipped ones.
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-5/+5
|
* [GI] Cosmetic cleanups of annotations and doc commentsPavel Holejsovsky2011-01-181-3/+3
| | | | | | This change does not introduce any functionality change, mostly cosmtic cleanups, like re-linebreak when introduced annotations messed up indentation or whitespace errors fixes.
* Move GtkMenu docs inlinePavel Holejsovsky2011-01-171-2/+172
|
* Make GtkMenu(Shell) use GtkStyleContextCarlos Garnacho2011-01-121-22/+69
| | | | The default CSS has also been modified to theme these sensibly
* menu: Update adjustment usage for sealingBenjamin Otte2011-01-051-18/+12
|
* menu: Update adjustment usage for sealingBenjamin Otte2011-01-051-9/+2
| | | | | Call gtk_adjustment_set_value() instead of manually updating the value in gtk_menu_scroll_to()
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-0/+1
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* gtkmenu: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATEJavier Jardón2011-01-041-11/+5
|
* Drop explicit includes of gdkkeysyms.hMatthias Clasen2011-01-041-2/+4
| | | | | These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h to use the new GDK_KEY_ symbols.
* Removed GtkMenuItem->show_submenu_indicator flagTristan Van Berkom2011-01-041-1/+0
| | | | | | | | The show_submenu_indicator flag was explicitly set in various places from GtkMenu/GtkMenuBar at request times, since the GtkMenuItem already checks the parent type for GTK_IS_MENU_BAR() in various places, removed this flag in favor of just checking the parent type (only in the interest of better readable code).
* API: gdk: gdk_display_get_device_state() => gdk_device_get_position()Benjamin Otte2010-12-271-2/+1
| | | | | The API was not display-specific, but belonged to the device. Also, we didn't find a user of the modifier mask, so we dropped it.
* Removed sealed members from GtkMenuItemMatthias Clasen2010-12-261-12/+13
|
* Remove sealed members from GtkMenuShellMatthias Clasen2010-12-231-83/+83
|
* Remove sealed members from GtkMenuMatthias Clasen2010-12-231-1526/+1481
|
* GtkStyleProperties: Turn border-width into a GtkBorder property.Carlos Garnacho2010-12-041-54/+76
| | | | | | | | | All current users of this CSS property have been updated to deal with a GtkBorder. Also a 0 border width has been set in the default CSS to ensure GtkStyleContext and GtkThemingEngine always provide a non-NULL pointer for this property.
* GtkMenu: Use GtkStyleContext for rendering.Carlos Garnacho2010-12-041-155/+191
|
* GtkMenu: Set widget state as state flags.Carlos Garnacho2010-12-041-3/+3
|
* Fixed GtkMenuShell to deactivate itself at dispose timeTristan Van Berkom2010-11-251-2/+5
| | | | | | Since GdkDevice stuff, it seems that destroying an active menu doesnt get rid of all the device grabery, this fixes bug 635693.
* Move all GdkDevice members to private and add one missing accessorMichael Natterer2010-11-231-1/+1
|
* Fix interaction between scrolling menus and automatic mnemonicsMatthias Clasen2010-10-311-7/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=612611
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-10-311-1/+1
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-2/+2
|
* Use gtk_scrollbar_new() instead gtk_[v|h]scrollbar_new()Javier Jardón2010-10-301-1/+1
|
* settings: Move setting property registration in gtksettings.cEmmanuele Bassi2010-10-201-25/+0
| | | | | | | | | Some GtkSettings property are registered by other classes. This leads to the "interesting" issue that setting GtkSettings:gtk-button-images requires that the GtkButton class is referenced first - or that a GtkButton is created. https://bugzilla.gnome.org/show_bug.cgi?id=632538
* Remove gtk_widget_hide_all()Matthias Clasen2010-10-191-10/+0
| | | | | | it's useless and a trap for programmers https://bugzilla.gnome.org/show_bug.cgi?id=438318
* gtkmenu: Really fix menu codeJavier Jardón2010-10-041-1/+1
| | | | | | Previous patch f0039aa2a4367df95bda1b6cf3d4a735cafb4eb2 is not correct as it try to fix a bug introduced in commit 3a10216dd01c8d10df235b88c8942b2fda15689b
* Fix a crash in menu codeChristian Persch2010-10-041-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=631311
* Remove unneded castsJavier Jardón2010-09-291-7/+5
| | | | | | As gtk_adjustment_new() returns a GtkAdjustment* now https://bugzilla.gnome.org/show_bug.cgi?id=630731
* Move destroy signal to GtkWidgetJavier Jardón2010-09-261-14/+12
| | | | Also make GtkWidget derive from GInitiallyUnowned
* menu: Use gtk_cairo_transform_to_window()Benjamin Otte2010-09-261-5/+1
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-47/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* menu: Get rid of gdk_drawable_get_size() usageBenjamin Otte2010-09-261-29/+21
|