summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
Commit message (Collapse)AuthorAgeFilesLines
* Add two users of gtk_widget_insert_action_groupLars Uebernickel2012-08-201-0/+3
| | | | | | | | | | Each GtkWindow with an associated GtkApplication should add this as "app" to its action context. Each GtkApplicationWindow is its own GActionGroup, and it should add itself to itself with the prefix "win". There is now some duplication here because we have the new GActionMuxer hierarchy managed by GtkWidget, but GtkApplicationWindow still carries its own muxer. The redundancy will be removed in a future patch.
* window: Update _gtk_window_set_is_active API commentRob Bradford2012-07-281-2/+2
| | | | | The comment referenced GTK_TOPLEVEL which has been replaced by GTK_WINDOW_TOPLEVEL.
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-4/+4
|
* Trivial: remove a bit of obfuscationMatthias Clasen2012-05-301-1/+1
|
* window: Remove needless call to ensure_state_flag_backdrop() on mapRui Matos2012-05-031-2/+0
| | | | | | | | | This call was forcing needless work since gtk_window_map() already does a gdk_window_show() which initially sets GDK_WINDOW_STATE_FOCUSED that we then handle regularly on the widget's window state event handler. https://bugzilla.gnome.org/show_bug.cgi?id=673237
* window: Validate style context before first allocationBenjamin Otte2012-05-021-0/+5
| | | | | | When we don't do that, we completely botch sizing popups. Not good. Fixes remaining failing reftests
* container: Remove duplicated flagBenjamin Otte2012-04-171-2/+1
| | | | | GtkContainer::need_resize and GtkWidget::alloc_needed are the same thing.
* window: Set parent context instead of just resetting styleBenjamin Otte2012-04-171-1/+6
| | | | Otherwise the inherit properties won't inherit properly.
* Fix malformed doc commentsMatthias Clasen2012-04-121-1/+1
| | | | | Most of these are forgotten :'s and similar details which gtk-doc now warns about.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* window: Fix typo in documentation for gtk_window_get_positionRob Bradford2012-02-231-1/+1
|
* gtk_window_set_attached_to: ref(), not ref_sink() the attach_widgetMichael Natterer2012-02-211-1/+1
| | | | | The attached popup doesn't take ownership of its "parent" widget, so ref_sink() was wrong, and caused widgets to be leaked.
* window: Avoid unnecessary attach-widget resetsBenjamin Otte2012-01-311-0/+3
|
* Fix doc syntaxMatthias Clasen2012-01-201-1/+1
|
* GtkApplicationWindow: Fix resize grip positioningMatthias Clasen2012-01-201-23/+42
| | | | Based on a patch by Carlos Garcia Campos, bug 668248
* Don't call set_application() in gtk_window_realizeRyan Lortie2012-01-181-2/+0
| | | | | | | This call has no effect and with the newly-added restrictions it's violating the set-application-after-realized rule. https://bugzilla.gnome.org/show_bug.cgi?id=668203
* Revert "set the G_PARAM_CONSTRUCT flag on the GtkWindow:application property"Ryan Lortie2012-01-171-1/+1
| | | | | | This reverts commit d4fe912879ce1b19490ba5729f67a27b1cf397c9. This patch caused some unanticipated compatibility issues.
* Expand the docs for GtkWindow::attached-toMatthias Clasen2012-01-121-6/+12
|
* window: improve docs for gtk_window_set_attached_to()Cosimo Cecchi2012-01-121-7/+12
|
* Introduce gtk_window_get/set_attached_to()Andrea Cimitan2012-01-121-0/+104
| | | | | | | | | | | gtk_window_get/set_attached_to() is a new API that allows for windows to be attached to a GtkWidget. The attachment is a logical binding between the toplevel window and the widget that generated it; this kind of information is currently used to propagate style information from the widget to the window, but is also useful e.g. for accessibility. https://bugzilla.gnome.org/show_bug.cgi?id=666103
* set the G_PARAM_CONSTRUCT flag on the GtkWindow:application propertyGuillaume Desmottes2012-01-101-1/+1
| | | | | | | This allows subclass to get the value of this property in their constructed method. https://bugzilla.gnome.org/show_bug.cgi?id=667628
* Rename 'window-unfocused' to 'backdrop'Rui Matos2012-01-091-6/+6
| | | | | | | | 'window-unfocused' is too long and mentions "focus" which is historically loaded with the meaning "input focus". 'backdrop' isn't generally used in GUI speak and still conveys the state the widgets in an unfocused or background toplevel window are in.
* window: Stop setting state flags on the style context for drawingRui Matos2012-01-091-11/+3
| | | | | | | This also removes setting the FOCUSED state flag when gtk_window_has_toplevel_focus() since this effect can now be done with the new WINDOW_UNFOCUSED flag instead which actually works better regarding X grabs and modal windows.
* Revert "GtkWindow: new API to store state in GSettings"Matthias Clasen2012-01-091-128/+0
| | | | | | | This reverts commit 730765de9163934d9993b25a87f076f1b36ed271. This needs more thought, committing it on the same day as filing the bug was premature.
* GtkWindow: new API to store state in GSettingsRyan Lortie2012-01-061-0/+128
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=667438
* gtk/*: Use g_list_free_full() convenience functionJavier Jardón2012-01-051-16/+5
|
* Bug 667018-gtk/gtkwindow.c: Include deprecated/gtkstyle.hChun-wei Fan2011-12-301-0/+2
| | | | | This is needed for the prototype of gtk_widget_reset_rc_styles, to avoid C4013/implicit declaration of ... warnings of that function
* GtkApplication: export windows on the busRyan Lortie2011-12-191-17/+0
| | | | And advertise their location on the bus using X11 properties.
* window: Set a _DBUS_APPLICATION_ID X11 window propertyColin Walters2011-12-191-1/+20
| | | | This will allow gnome-shell to reference it.
* Use the workarea when placing popupsMatthias Clasen2011-12-181-4/+4
| | | | | This uses the new workarea API to avoid placing popups underneath panels, docks, etc.
* window: Add hide-titlebar-when-maximized propertyFlorian Müllner2011-12-151-1/+83
| | | | | | | | | | | For maximized windows, titlebars cannot be used to reposition or scale the window, so if an application does not use it to convey useful information (other than the application name), the screen space occupied by titlebars could be put to better use. Add a new window property which requests from the window manager to hide titlebars when windows are maximized to account for this. https://bugzilla.gnome.org/show_bug.cgi?id=665616
* Make window handle transparentAlexander Larsson2011-12-051-1/+4
| | | | | | | | | | | Instead of painting the window background on the grip_window we now only paint it on the GtkWindow->window, and we make the grip_window have a transparent background. We can't really make transparent window handle background optional via css atm, because the handle color is actually based on the background color, so if that is set to transparent we won't draw anything.
* Fix gdk_cairo_region_create_from_surface on big endianMichel Dänzer2011-11-191-1/+1
| | | | | | | | | gdk_cairo_region_create_from_surface doesn't work correctly on PPC. This is most prominently seen with the GTK window resize grip, the shape of which is mirrored every eight pixels horizontally. At the same time, use an A1 surface for the resize grip shape to eliminates an A8->A1 surface conversion.
* window: Fix cast warningsBenjamin Otte2011-11-081-1/+1
|
* gtk: Add a GTK_STATE_FLAG_WINDOW_UNFOCUSED widget state flagRui Matos2011-11-081-0/+25
| | | | | | | This allows themes to style widgets differently according to whether the toplevel window they are in is presented as focused. https://bugzilla.gnome.org/show_bug.cgi?id=661428
* GtkWindow: Use new begin_resize_drag apiMatthias Clasen2011-11-051-6/+7
| | | | | | | | We have an event, so the correct thing to do is to pass the device into the function that we are calling. GDK just grew a variant that takes a device, for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=663444
* gtkwindow: Clean up gtk_window_map()Rui Matos2011-10-011-19/+16
| | | | Remove unneeded variable and delete trailing whitespace.
* Documentation fixesMatthias Clasen2011-09-251-3/+4
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* Make focus rectangles optionalMatthias Clasen2011-08-101-6/+105
| | | | | | | | | | | | | | | | | | This commit introduces a new setting, gtk-visible-focus, backed by the Gtk/VisibleFocus X setting. Its three values control how focus rectangles are displayed. 'always' is equivalent to the traditional GTK+ behaviour of always rendering focus rectangles. 'never' does what it says, and is intended for keyboardless situations, e.g. tablets. 'automatic' hides focus rectangles initially, until the user interacts with the keyboard, at which point focus rectangles become visible. https://bugzilla.gnome.org/show_bug.cgi?id=649567
* Convert GailWindow to GtkWindowAccessibleMatthias Clasen2011-07-051-0/+3
| | | | | | While doing this, drop the get_mdi_zorder implementation that really should come from the window manager side. Dropping this saves some 500 lines.
* Remove unused includesMatthias Clasen2011-06-161-1/+0
| | | | Nothing is using gtkrc.h functionality any more.
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-2/+2
|
* gtkcontainer: Move private functions to private headerJavier Jardón2011-06-061-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=651707
* window: Only draw resize grip if its window existsBenjamin Otte2011-05-231-1/+1
| | | | | | | | | | Don't rely on priv->resize_grip_visible as the code comment in the variable declaration indicates. This fixes warnings with GtkPlug, which can cause resize_grip_visible to be TRUE but grid_window to be NULL - running tests/teststatusicon reproduces this. This broke with 7ef113ce56a75641175af31267e2075f634267e0
* Some additional auto-mnemonic fixesMatthias Clasen2011-05-061-2/+1
| | | | | Previously, we would also show mnemonics if the user hits Ctrl+Alt, even though Ctrl+Alt+<x> does not actually trigger.
* GtkWindow: set mnemonics visible on focus in if modifier is pressedRui Matos2011-05-061-0/+37
| | | | | | | With gtk-auto-mnemonics on, we hide mnemonics on focus out. We should also check if the modifier is pressed on focus in and if so, show mnemonics again. https://bugzilla.gnome.org/show_bug.cgi?id=618815
* window: Make non-resizable windows use default size for geometry hintsBenjamin Otte2011-05-011-0/+4
| | | | | | Previously, we were trying to size them by the default size, but then setting the minimum size as the geometry hints' minimum and maximum size.
* window: Remove overeagerness with new size guessingBenjamin Otte2011-05-011-14/+17
| | | | | | | Don't use the guessed size when we are interested in the minimum size. So now we can really shrink menubars. This reverts parts of 08b2ac1d90b4f3dfa76d6a76fa04ca28c6b7ba12
* window: Invert check that was wrongBenjamin Otte2011-04-291-1/+1
|
* window: Make comparison be the right directionBenjamin Otte2011-04-271-1/+1
| | | | Messed something up there...