summaryrefslogtreecommitdiff
path: root/gtk/gtkoverlay.c
Commit message (Collapse)AuthorAgeFilesLines
* overlay: don't call gtk_style_context_set_background()Cosimo Cecchi2015-07-011-1/+0
|
* Fix an oversightMatthias Clasen2015-06-231-1/+1
|
* GtkOverlay: Sync up parameter namesMatthias Clasen2015-06-201-6/+7
| | | | | gtk-doc gets confused if the parameter names between header, source and doc comment don't match up.
* overlay: remove gtk_overlay_add_pass_through_overlay()Cosimo Cecchi2015-06-171-43/+0
| | | | | | | The API to access this functionality will be the setter we just added in the previous commit. https://bugzilla.gnome.org/show_bug.cgi?id=750568
* overlay: add setters and getters for pass-through child propertyCosimo Cecchi2015-06-171-0/+52
| | | | | | This will make the API easier to use from bindings too. https://bugzilla.gnome.org/show_bug.cgi?id=750568
* gtkoverlay: Fix issues with removeAlexander Larsson2015-06-151-3/+5
| | | | | The iteration now progresses past a delete, so make sure we iterate safely. Also, don't chain up if we removed a child.
* GtkOverlay: Add support for input pass-through overlaysAlexander Larsson2015-06-151-0/+70
| | | | | | | | | | For these widgets we set pass-through on the child window so that input over these widgets (that are not on a child input window) goes to the window below the overlay. https://bugzilla.gnome.org/show_bug.cgi?id=750568 https://bugs.freedesktop.org/show_bug.cgi?id=90917
* overlay: Add reorder_overlay()Alexander Larsson2015-06-151-1/+198
| | | | | | | | This allows you to control the z-ordering of overlay children https://bugzilla.gnome.org/show_bug.cgi?id=750568 https://bugs.freedesktop.org/show_bug.cgi?id=90917
* overlay: Handle overlays when no main widget existsBenjamin Otte2014-09-071-6/+4
| | | | | | | | | Just pretend that the main widget is an empty widget the size of the overlay. Makes it possible to write testcases where no size requests are run on overlay widgets before size_allocate() is called. Testcase included.
* docs: Change documentation to consistenly use "Returns:"Javier Jardón2014-07-101-1/+1
| | | | Instead "Return value:" or "Return:"
* gtk: add missing type annotations ported from Vala bindingsEvan Nemerson2014-05-271-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730745
* overlay: don't have a custom draw implementationCosimo Cecchi2014-05-021-32/+0
| | | | | We can't think with Benjamin of a reason this should be needed, so let's just remove it.
* overlay: deal gracefully with main widget being absentMatthias Clasen2014-04-051-1/+8
| | | | | | | | It can happen that we get a size request when the main widget is still NULL. Currently we hit a critical in this case, and stumble on. We can do better. Opening a new tab in nautilus is hitting this case. https://bugzilla.gnome.org/show_bug.cgi?id=727643
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-1/+1
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use proper quotesWilliam Jon McCann2014-02-051-2/+2
|
* docs: Use "#" for refsect2 instead of ##William Jon McCann2014-02-041-1/+1
|
* docs: use quotes instead of <firstterm>William Jon McCann2014-02-041-1/+1
|
* docs: don't use <tag> docbook elementsWilliam Jon McCann2014-02-041-1/+1
|
* docs: Convert to markdownMatthias Clasen2014-02-021-5/+2
| | | | Specifically, switch to using markdown syntax for sections.
* Replace all margin-left and margin-right with margin-start and margin-endYosef Or Boczko2013-11-151-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710238
* gtkoverlay: Remove get_preferred_width / get_preferred_height implementationJasper St. Pierre2013-11-011-40/+0
| | | | GtkBin now handles this for us.
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-3/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* overlay/paned: Ensure we set the right visual on windowsAlexander Larsson2013-05-081-1/+2
| | | | | | This was always "needed", but the problems with not doing it now are worse, since any CSD window will have a nonstandard rgba visual.
* overlay: Silence gcc warningsBenjamin Otte2013-04-231-0/+8
|
* GtkOverlay: Respect overlay child min sizeAlexander Larsson2013-03-281-6/+6
| | | | | | | | Never allocate an overlayed child less than its minimum request. If the minimum doesn't fit we will gracefully clip via the widget window. https://bugzilla.gnome.org/show_bug.cgi?id=696623
* GtkOverlay: Don't allocate child except in size_allocateAlexander Larsson2013-03-281-44/+55
| | | | | | | | | | | | | | | | | We were calling gtk_overlay_child_allocate() both in realize and in add as we wanted to create and position the child windows for the widgets. However, this call also actually called gtk_widget_size_allocate() on the child, which it shouldn't. In some cases the overlay is realized before being allocated, and thus it will allocate the child at 0x0 which is an invalid size for it to be in. In particular, if the child has margins set this will result in negative allocations and warnings. This fix splits out the allocation computation so that gtk_overlay_create_child_window can use it without callers having to call gtk_overlay_child_allocate() to move the windows. https://bugzilla.gnome.org/show_bug.cgi?id=696623
* Add gtk_widget_(un)register_windowAlexander Larsson2013-02-071-3/+3
| | | | | | | | | | | | This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
* overlay: Fix child window position/size on realizeAlexander Larsson2012-12-111-1/+4
| | | | | | We don't get an automatic queue resize on realize anymore, which was papering over this bug where we did not set the child window size/position at realize time.
* gtkoverlay: fix get-child-position annotationIgnacio Casal Quinteiro2012-09-161-1/+1
|
* gtk: Make widget only invalidate widget positionsBenjamin Otte2012-04-171-13/+0
| | | | Instead of resetting them completely
* overlay: add left/right/top/bottom style classes to overlay childrenCosimo Cecchi2012-02-291-15/+92
| | | | | | | | When we're allocating children of GtkOverlay, compare their allocation with the overlay one, and set left/right/top/bottom style classes if the overlaid widget touches one or more of the overlay edges. https://bugzilla.gnome.org/show_bug.cgi?id=669342
* overlay: do not to set uninitialized values in the main allocationCosimo Cecchi2012-02-291-2/+12
| | | | | | gtk_widget_translate_coordinates() can fail in case the widget is not realized or there's no common ancestor. Don't use the x/y values returned by that method in that case, since their value is undefined.
* overlay: factor out gtk_overlay_get_main_widget_allocationCosimo Cecchi2012-02-291-25/+36
| | | | This will be used later in a subsequent commit.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Documentation: Correct references to properties.Murray Cumming2012-02-151-3/+3
| | | | | | | | These should use :, not ::, though signals would use ::. See http://developer.gnome.org/gtk-doc-manual/unstable/documenting_syntax.html.en and http://developer.gnome.org/gtk-doc-manual/unstable/documenting_symbols.html.en
* overlay: Properly allocate the child upon additionBenjamin Otte2011-12-081-0/+1
| | | | | This ensures that after addition the child gets assigned the proper allocation and the child window is properly shown/hidden.
* overlay: Move codeBenjamin Otte2011-12-081-35/+32
| | | | | | | Move code for child allocation into the child allocation function. Don't keep it in the overlay allocation code. See the next commit for why this is useful.
* overlay: Create child window before setting parentBenjamin Otte2011-12-081-3/+7
| | | | Otherwise, the window will not be used when set_parent() maps the child.
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+0
| | | | and remove gtkmainprivate.h completely.
* overlay: add initial version of gtkoverlayIgnacio Casal Quinteiro2011-06-121-0/+635