summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
Commit message (Collapse)AuthorAgeFilesLines
* window: add an is-maximized property to GtkWindowCosimo Cecchi2014-01-131-0/+3
| | | | | | | | 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
* Add a gtk_window_close functionMatthias Clasen2013-06-281-0/+2
| | | | This is useful when adding close buttons in custom titlebars.
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+112
| | | | Add annotations to all exported functions in GTK+ headers.
* window: Deprecate gtk_window_reshow_with_initial_size()Benjamin Otte2013-05-011-0/+1
|
* Add documentation for gtk_window_set_titlebarMatthias Clasen2013-03-181-0/+1
|
* Add gtk_window_set_titlebarMatthias Clasen2013-03-181-0/+3
| | | | | | | | | A new function that sets a custom titlebar on a GtkWindow. With client-side decorations, the custom titlebar simply replaces the one that GtkWindow would otherwise create itself. With traditional decorations, we tell the window manager to just decorate the window with a border. This works ok at least with metacity and mutter.
* Add gtk_widget_get/set_opacityAlexander Larsson2013-02-071-0/+2
| | | | | | | | | | | | | | This adds gtk_widget_get/set_opacity, as well as a GtkWidget.opacity property. Additionally it deprectates gtk_window_get/set_opacity and removes the GtkWindow.opacity property (in preference for the new identical inherited property from GtkWidget, which should be ABI/API compat). The implementation is using the new gdk_window_set_opacity child window support for windowed widgets, and cairo_push/pop_group() bracketing in gtk_widget_draw() for non-window widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-0/+6
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* Introduce gtk_window_get/set_attached_to()Andrea Cimitan2012-01-121-0/+3
| | | | | | | | | | | 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
* Revert "GtkWindow: new API to store state in GSettings"Matthias Clasen2012-01-091-4/+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/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=667438
* window: Add hide-titlebar-when-maximized propertyFlorian Müllner2011-12-151-0/+3
| | | | | | | | | | | 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 focus rectangles optionalMatthias Clasen2011-08-101-0/+3
| | | | | | | | | | | | | | | | | | 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
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-6/+4
|
* Add a setter for GtkWindow.has_user_ref_countMatthias Clasen2011-01-101-0/+2
| | | | | | This is needed for some language bindings. https://bugzilla.gnome.org/show_bug.cgi?id=638880
* Remove private header from gtkwindow.hStef Walter2010-12-231-3/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=637907
* Drop long-obsolete linux framebuffer APIsMatthias Clasen2010-12-231-23/+4
| | | | | | | | The functions to set frames on windows stopped being interesting when the linux framebuffer port was dropped, many years ago. Similar functionality may come back with client-side decorations in the future.
* Hide GtkWindowGroup membersMatthias Clasen2010-12-171-60/+3
| | | | | | In the process of removing all sealed members from headers. At the same time, add a gtkwindowprivate.h header and move all internal functions from gtkwindow.h there.
* gtk: clean up GtkWidget signalsMichael Natterer2010-10-201-9/+2
| | | | | | | | | - add slots for damage-event, move-focus and keynav-failed - reorder signals a bit so related stuff is grouped together - some indentation fixes in the GtkWidgetClass - remove the move-focus compat hack from GtkTextView - turn the move-focus compat hack in GtkWindow into properly implementing GtkWidget::move-focus()
* GtkApplication rewriteRyan Lortie2010-10-191-0/+5
|
* GtkWindow: Allow setting size from geometryOwen W. Taylor2010-10-111-0/+8
| | | | | | | | | | | | | | | | | If you set a geometry widget via gtk_window_set_geometry_hints() it becomes very hard to compute appropriate toplevel sizes in pixels to make the window a particular size. Synthesizing strings and passing them to gtk_window_parse_geometry() is possible, but to avoid avoid such ugliness, add functions: gtk_window_set_default_geometry() gtk_window_resize_to_geometry() That act like gtk_window_set_default_size() and gtk_window_resize() but are in terms of the resize increments of the geometry widget. https://bugzilla.gnome.org/show_bug.cgi?id=631796
* Add resize grips to GtkWindowMatthias Clasen2010-10-081-0/+10
| | | | | | | | | | | | | | | | Allow any window to display a resize grip, in the south-east or south-west corner, depending on text direction. This is implemented as a shaped window that gets overlayed on top of whatever content is there. We add api that allows widgets to avoid the resize grip, if desired. The ::has-resize-grip property controls if a window may display a resize grip. It will only be displayed if the window is resizable and not maximized. The size and visual appearance of the resize grip is under theme control, using the resize-grip-width/height style properties and the paint_resize_grip style function.
* API: remove gtk_window_set_visual()Benjamin Otte2010-09-281-3/+0
| | | | | | gtk_widget_set_visual() exists now and can be used instead. This reverts commit 59b227e1232998fdb854affc8dcd9dcd2a446b39.
* window: Keep track of own visualBenjamin Otte2010-09-261-0/+3
| | | | | | Add gtk_window_set_visual() and a "visual" property. This allows changing the window visual to the rgba one and other awesome things (like implementing the trayicon spec).
* GtkWindow: move public members to private structureJavier Jardón2010-09-111-58/+2
| | | | Signed-off-by: Christian Dywan <christian@twotoasts.de>
* Added _gtk_widget_get_wmclass() internal functionJavier Jardón2010-08-311-0/+4
| | | | Needed by GtkPlug
* Drop Win32 DLL ABI compatibility cruftTor Lillqvist2010-08-301-6/+0
| | | | No need for that any longer as we are changing DLL name.
* Remove GtkWindow:allow-grow and GtkWindow::allow_shrink deprecated propertiesJavier Jardón2010-07-021-1/+1
|
* Make gtk_window_group_get_current_grab publicMatthias Clasen2010-06-241-1/+1
| | | | See bug #620832.
* GtkWindow: Add gtk_window_has_group()Carlos Garcia Campos2010-05-261-0/+1
| | | | | | To check whether the window has an explicit group Fixes https://bugzilla.gnome.org/show_bug.cgi?id=618271#c2
* Merge the xi2-for-master branchMatthias Clasen2010-05-251-0/+14
|
* Move GtkAccelGroup private structure to shared header fileJavier Jardón2010-05-031-0/+2
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=602174
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove deprecated GtkWindow functionJavier Jardón2010-05-031-8/+0
|
* Only show the mnemonic underline when pressing AltMatthias Clasen2009-12-201-0/+3
| | | | | | | ...and show them in menus when navigating the menu with the keyboard. This is similar to what other platforms do, and reduces visual clutter. There is a setting to control this. Most of the work on this patch was done by Thomas Wood. See bug 588554.
* [gtk/gtkwindow] Added accessor for GTK_WINDOW ()->typeChristian Dywan2009-11-111-0/+2
| | | | | | | There already is the "type" property, but an accessor function for it would be intuitive: gtk_window_get_window_type() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=595498
* Add a function to get the default window icon nameMatthias Clasen2009-02-201-0/+2
| | | | svn path=/trunk/; revision=22387
* Keep GtkPlug in sync with the global list of toplevels.Matthias Clasen2009-01-231-0/+3
| | | | | | | | | | | | | | | | | Patch by Federico Mena Quintero * gtk/gtkwindow.h: * gtk/gtkwindow.c (_gtk_window_set_is_toplevel): New internal function used when a GtkPlug parents/unparents itself by an in-process GtkSocket. This keeps the plug's GTK_TOPLEVEL flag in sync with the global toplevel_list. * gtk/gtkplug.c (gtk_plug_set_is_child): Call _gtk_window_set_is_toplevel() to keep the toplevel list updated, instead of just setting/unsetting the GTK_TOPLEVEL flag. svn path=/trunk/; revision=22191
* no need to include <gtk/gtkenums.h> in headers which somehow includeMichael Natterer2008-10-301-1/+0
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gtk/gtkenums.h> in headers which somehow include gtkobject.h or another header which includes it. svn path=/trunk/; revision=21734
* no need to include <gdk/gdk.h> in any widget header, it's included viaMichael Natterer2008-10-301-1/+2
| | | | | | | | | | 2008-10-30 Michael Natterer <mitch@imendio.com> * gtk/*.h: no need to include <gdk/gdk.h> in any widget header, it's included via gtkwidget.h anyway. svn path=/trunk/; revision=21732
* Bug 544684 - Win64 issue, window handles are assumed to be 32-bitTor Lillqvist2008-08-041-4/+4
| | | | | | | | | | | | | | | | | | | | 2008-08-05 Tor Lillqvist <tml@novell.com> Bug 544684 - Win64 issue, window handles are assumed to be 32-bit * gtk/gtkwindow.h * gtk/gtkwindow.c: Change the type of the xid parameter of the internal gtk_window_remove_embedded_xid() and gtk_window_add_embedded_xid() functions from guint to GdkNativeWindow. * gtk/gtkwindow.c (send_client_message_to_embedded_windows): Instead of GPOINTER_TO_UINT(), just cast the gpointer to GdkNativeWindow. GPOINTER_TO_UINT() drops the upper 32 bits on Win64. svn path=/trunk/; revision=20992
* Bug 65818 – rename gtk_window_set_default() and add getter for itMatthias Clasen2008-08-021-1/+1
| | | | svn path=/trunk/; revision=20931
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.hMichael Natterer2008-06-241-2/+0
| | | | | | | | | | | | | | | | | | 2008-06-24 Michael Natterer <mitch@imendio.com> * gtk/gtkassistant.h * gtk/gtkcellrenderer.h * gtk/gtkfilechooserentry.h * gtk/gtkprivate.h * gtk/gtktooltip.h * gtk/gtktreeview.h * gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h if there is any other widget included, they all have to include their respective parent classes (the is-a relation works for includes too). svn path=/trunk/; revision=20679
* gtk/gtkwindow.[ch] rename gtk_window_group_get_windows() toMichael Natterer2008-06-201-1/+1
| | | | | | | | | | | 2008-06-20 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.[ch] * gtk/gtk.symbols: rename gtk_window_group_get_windows() to gtk_window_group_list_windows(). svn path=/trunk/; revision=20635
* Add gtk_window_group_get_windows().Tim Janik2008-06-201-0/+2
| | | | | | | * gtk/gtk.symbols: * gtk/gtkwindow.[ch] (gtk_window_group_get_windows): New function. svn path=/trunk/; revision=20632
* Switch to "guint GSEAL (foo) : width;" when packing fields in guints.Tim Janik2008-06-201-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtkbox.h: * gtk/gtkbutton.h: * gtk/gtkcellrenderer.h: * gtk/gtkcellrenderertext.h: * gtk/gtkcheckmenuitem.h: * gtk/gtkcontainer.h: * gtk/gtkentry.h: * gtk/gtkhandlebox.h: * gtk/gtkimcontextsimple.h: * gtk/gtklabel.h: * gtk/gtkliststore.h: * gtk/gtkmenu.h: * gtk/gtkmenuitem.h: * gtk/gtkmenushell.h: * gtk/gtknotebook.h: * gtk/gtkpaned.h: * gtk/gtkplug.h: * gtk/gtkprintjob.h: * gtk/gtkprogressbar.h: * gtk/gtkrange.h: * gtk/gtkscale.h: * gtk/gtkscrolledwindow.h: * gtk/gtksizegroup.h: * gtk/gtksocket.h: * gtk/gtkspinbutton.h: * gtk/gtkstatusbar.h: * gtk/gtktable.h: * gtk/gtktearoffmenuitem.h: * gtk/gtktextbuffer.h: * gtk/gtktextview.h: * gtk/gtktogglebutton.h: * gtk/gtktoolbar.h: * gtk/gtktreestore.h: * gtk/gtktreeviewcolumn.h: * gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints. svn path=/trunk/; revision=20621