summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubar.c
Commit message (Collapse)AuthorAgeFilesLines
* Trivial cleanupMatthias Clasen2013-11-161-2/+2
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Deprecate and ignore gtk-menu-bar-accel settingWilliam Jon McCann2013-06-261-38/+19
| | | | Use 'F10' by default.
* Deprecate and ignore gtk-menu popup and popdown delay settingsWilliam Jon McCann2013-06-261-7/+3
| | | | | Just pick good defaults. The a11y team confirmed that they don't rely on them.
* widget: Adapt _gtk_widget_get_preferred_size_for_size()Benjamin Otte2013-05-011-1/+1
| | | | ... for baseline support byu taking two extra (possible NULL) arguments.
* sizerequest: Split out a common functionBenjamin Otte2013-04-221-20/+2
|
* menubar: deprecate internal-padding style propertyCosimo Cecchi2012-11-281-23/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=689168
* menubar: add support for CSS paddingCosimo Cecchi2012-11-281-20/+40
| | | | | | In preparation for the removal of the internal-padding style property. https://bugzilla.gnome.org/show_bug.cgi?id=689168
* gtkmodelmenu: simplify logic, expose bind APIRyan Lortie2012-09-171-0/+29
| | | | | | | | | | | | | | | Make the main (and only) entry-point to gtkmodelmenu.c the now-public gtk_menu_shell_bind_model(). Move the convenience constructors (gtk_menu_new_from_model() and gtk_menu_bar_new_from_model()) to their proper files. Remove the private header file. Simplify the code a bit by making the initial populate part of the bind() call. https://bugzilla.gnome.org/show_bug.cgi?id=682831
* Move the gtk_shadow_type check down to gtk_render_frameMatthias Clasen2012-09-161-9/+9
| | | | | | | | In gtk_menu_bar_draw, the check for shadow type != none disables rendering of the background instead of the frame. The check should be moved down to gtk_render_frame. Patch by Peter de Ridder, http://bugzilla.gnome.org/show_bug.cgi?id=670390
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* menubar: Stop setting state flags on the style context for drawingRui Matos2011-12-191-4/+0
|
* menubar: Use gtk_widget_class_set_accessible_role()Benjamin Otte2011-07-181-0/+2
|
* menushell: Use GtkMenuShellAccessible as a11y objectBenjamin Otte2011-07-181-3/+0
| | | | Previously it was only used by GtkMenuBar, and that's a naming mismatch.
* Convert GailMenuShell to GtkMenuShellAccessibleMatthias Clasen2011-07-051-0/+3
|
* gtkcontainer: Move private functions to private headerJavier Jardón2011-06-061-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=651707
* all: avoid boxed structs copying where possibleCosimo Cecchi2011-05-181-20/+14
| | | | | | | Use the GtkStyleContext accessors for boxed properties where possible, to reduce allocations. https://bugzilla.gnome.org/show_bug.cgi?id=650420
* menuitem: Deprecate gtk_menu_item_set_right_justified()Benjamin Otte2011-05-021-2/+2
| | | | | | And the getter, too: gtk_menu_item_get_right_justified() and the corresponding property. Also make the only caller use the private structure (as it did before the recent patches).
* menubar: Rewrite size allocation to take natural sizes into accountBenjamin Otte2011-05-011-98/+111
| | | | Yay for properly ellipsizing menubars!
* menubar: Only query ipadding when we actually need itBenjamin Otte2011-05-011-2/+2
|
* menubar: Respect ipadding also in y directionBenjamin Otte2011-05-011-0/+1
|
* menubar: Implement height-for-width / width-for-heightBenjamin Otte2011-05-011-3/+32
| | | | | Pretty much just required hooking up the 2 vfuncs, the previous code reorg did the rest of the work.
* menubar: Actually query minimum and natural size of childrenBenjamin Otte2011-05-011-11/+25
| | | | | Previously, we only queried the minimum size and reported that as natural size, too.
* menubar: Query only the necessary size from the childBenjamin Otte2011-05-011-20/+32
| | | | | The get_preferred_size() function was compied form elsewhere. We should really make that a common API.
* menubar: Only compute the necessary sizeBenjamin Otte2011-05-011-20/+15
| | | | There's no need to compute height when we're only interested in width
* menubar: compute in advance wether to add toggle sizeBenjamin Otte2011-05-011-9/+17
|
* menubar: Change function prototype for size request functionBenjamin Otte2011-05-011-24/+24
| | | | | This is in preparation for redoing that function to actually care about natural sizes.
* menubar: Remove unnecessary return_if_fail() in vfuncsBenjamin Otte2011-05-011-3/+0
|
* menubar: Remove useless function declarationBenjamin Otte2011-05-011-2/+0
|
* menubar: Remove unused variableBenjamin Otte2011-05-011-3/+0
|
* menubar: Compute proper size even when invisibleBenjamin Otte2011-05-011-56/+53
|
* GtkMenuShell: always 'activate' menu shellsMatthias Clasen2011-04-131-1/+0
| | | | | Failing to do so can leave us with a stuck grab in some cases. https://bugzilla.gnome.org/show_bug.cgi?id=554057
* Move GtkMenuBar docs inlineMatthias Clasen2011-01-131-0/+18
| | | | And remove some outdated content.
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-1/+1
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Drop explicit includes of gdkkeysyms.hMatthias Clasen2011-01-041-1/+0
| | | | | 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).
* Removed sealed members from GtkMenuItemMatthias Clasen2010-12-261-10/+12
|
* Remove sealed members from GtkMenuShellMatthias Clasen2010-12-231-24/+25
|
* GtkStyleProperties: Turn border-width into a GtkBorder property.Carlos Garnacho2010-12-041-8/+11
| | | | | | | | | 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.
* GtkMenuBar: Use GtkStyleContext for rendering.Carlos Garnacho2010-12-041-16/+40
|
* Removed size_request from GtkMenuBarTristan Van Berkom2010-10-271-1/+32
|
* settings: Move setting property registration in gtksettings.cEmmanuele Bassi2010-10-201-8/+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
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-1/+1
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* menubar: Port to draw vfuncBenjamin Otte2010-09-261-39/+17
|
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-1/+2
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Use gtk_size_request_get_size() instead deprecated ↵Javier Jardón2010-09-131-6/+12
| | | | | | gtk_widget_get_child_requisition() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
* GDK: Prefix key names with KEY_Colin Walters2010-09-081-8/+8
| | | | | | | | | | | | | The keysyms create a lot of potential namespace conflicts for C, and are especially problematic for introspection, where we take constants into the namespace, so GDK_Display conflicts with GdkDisplay. For C application compatiblity, add gdkkeysyms-compat.h which uses the old names. Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is the gtkimcontextsimple.c, since porting that requires porting more custom Perl code.
* Move deprectated menu enumerations to a private headerMatthias Clasen2010-08-281-2/+1
| | | | | | | The GtkSubmenuDirection and GtkSubmenuPlacement enumerations have been deprecated as public API for a while, but are still used internally in the menu code. Move them to a private header. This also prevents to generation of GObject boilerplate for these enums.
* gtk/gtkmenubar.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-13/+22
|