summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed statement in gtkwindow.c when toplevelness changes.toplevel-embeddingTristan Van Berkom2011-01-061-1/+1
| | | | | Fixed a typo when checking if the heirarchy toplevel is a toplevel before firing the hierarchy-changed signal.
* Dont show the GtkWindow when removing it from a parent and becomming a toplevelTristan Van Berkom2011-01-042-11/+7
| | | | | Showing the window causes it to try to grab focus, this causes problems when embedded toplevels run through dispose cycles.
* Fixed conflict while rebasing master.Tristan Van Berkom2010-12-291-11/+0
|
* Changes to testtoplevelembedTristan Van Berkom2010-12-291-4/+2
| | | | | | | - Made notebook tabs smaller - No need to hide/show toplevels after removing from a parent, if it's visible it will be automatically shown after removing outside of it's previous parent.
* Fixed GtkFileChooserDefault to handle cases of being in an embedded dialog.Tristan Van Berkom2010-12-291-10/+12
| | | | | | | This involves checking the toplevelness of new toplevels before connecting but not the *old* ones for disconnecting signals. Also take care of handling a row_reference that becomes invalid over the course of reparenting the filechooser into another parent.
* Fixed GtkWindow/GtkWidget to properly emit hierarchy changed for embedded ↵Tristan Van Berkom2010-12-292-15/+48
| | | | | | | | | | | | | | | | | | | | | | | | toplevels Now GtkWindow takes some measures when setting toplevelness: - When a window becomes toplevel after being embedded it saves the visibility state and reshow's itself so that the window re-realizes and presents itself again automatically - When emitting hierarchy-changed, synthetically mark the toplevel as not anchored, this allows the hierarchy changed propagation to recurse properly. GtkWidget also takes care to unset the parent window *after* unparenting the widget and after emitting the heirarhcy changed that leaves a NULL toplevel. That means there are now 2 cycles of "hierarchy-changed" when removing an embedded toplevel from a parent, first one that makes the new toplevel a NULL one (since the toplevel flag is not yet restored), the second cycle makes the removed window toplevel again when setting the parent window to NULL.
* Fixed focus handling on embedded windows.Tristan Van Berkom2010-12-292-3/+10
| | | | | Now GtkWindow chains up in focus vfuncs when non-toplevel, this fixes focus in testtoplevelembed.
* Added buttons to notebook tabs in testtoplevelembedTristan Van Berkom2010-12-291-23/+62
| | | | | Now you can remove and reembed the toplevels (deleting the toplevels put them back in the notebook).
* Moved location of unsetting parent window inside gtk_widget_unparent().Tristan Van Berkom2010-12-291-6/+6
| | | | Make sure to do this after the widget is unrealized.
* Fixed issues with "hierarchy-changed" signal.Tristan Van Berkom2010-12-294-3/+19
| | | | | | | | | | | | | | | | GtkFileChooserDefault watches the toplevel and montitors "set-focus" signal on it... however the connection needs to be remade when the GtkFileChooserDialog is in an embedded toplevel. Measure's taken: GtkWindow propagates hierarchy changes when _gtk_window_set_is_toplevel() is called, gtk_widget_unparent() unsets the widget's parent window earlier in the function so that the possible hierarchy change is still able to properly access the hierarchy. GtkFileChooserDefault checks if the "new" toplevel is indeed gtk_widget_is_toplevel() but not the old one, GtkRange has been updated to use gtk_widget_is_toplevel() inside it's hierarhcy_changed vfunc, other classes already do this properly.
* Added tests/testtoplevelembed.Tristan Van Berkom2010-12-292-1/+72
|
* Slightly less special casing in GtkWindow for gtk_widget_is_toplevel()Tristan Van Berkom2010-12-291-27/+9
| | | | | Also take care of setting the resize-mode at realize time depending on toplevelness.
* Added docs to gtk_widget_set_parent_window.Tristan Van Berkom2010-12-291-5/+12
| | | | Also stop setting the resize mode of the window.
* Allow GtkWindow to be parented if gtk_widget_set_parent_window() is called ↵Tristan Van Berkom2010-12-292-19/+147
| | | | | | | | | on one This patch makes gtk_widget_set_parent_window() undo the toplevelness of a GtkWindow, GtkWindow then realizes itself as a normal child widget and behaves like a normal GtkBin by checking gtk_widget_is_toplevel() in several places (show/hide/map/unmap/draw/size_allocate/check_resize/configure_event).
* Make GtkCheckButton's label left aligned by default.Tristan Van Berkom2010-12-291-0/+1
| | | | | Since we no longer limit the label's allocation to the minimum, now we take a saner approach to left aligning the label.
* Fixed unused variable in GtkCheckButton.Tristan Van Berkom2010-12-291-1/+0
|
* Fixed generic height-for-width implementation of GtkBin to consider request ↵Tristan Van Berkom2010-12-291-0/+5
| | | | | | | | adjustments Since "->adjust_size_request()" was added, it became important for GtkBin's generic height-for-width implementation to further check the requests using this vfunc.
* Make GtkCheckButton allocate all remaining space to it's child insteadTristan Van Berkom2010-12-291-8/+3
| | | | | | | | | | of limiting it to it's minimum size. This fixes height-for-width labels inside a GtkCheckButton, for some reason GtkCheckButton was limiting the child allocation to the child's minimum request, probably for the sake of virtual left-alignment of the child label to be beside the checkmark. This should be done by other means if nescesarry.
* Added proper height-for-width implementation to GtkAlignment.Tristan Van Berkom2010-12-291-4/+66
| | | | | | | For "padding" cases, it would be ok to fallback on GtkBin class implementation of height-for-width. However in cases where the user set's an xscale/yscale the GtkAlignment needs to take care of properly adjusting the for_size when querying it's child.
* Removed checks in gtksizerequest.cTristan Van Berkom2010-12-291-16/+0
| | | | | | | | | Checks were in place to ensure that widgets never request taller or wider than screen size. This was there to test a theory about scrolled window children functioning correctly with dynamic content however it breaks GtkViewport children which can generally return a value taller than screen height intentionally, GtkViewport uses this value to update the adjustments.
* Make GtkToolbar use GtkStyleContextCarlos Garnacho2010-12-281-76/+98
|
* Make GtkHandleBox use GtkStyleContextCarlos Garnacho2010-12-281-62/+67
|
* Make GtkSwitch use GtkStyleContextCarlos Garnacho2010-12-281-65/+85
|
* Make GtkFileChooserEntry make GtkStyleContextCarlos Garnacho2010-12-281-13/+21
|
* Make GtkProgressBar use GtkStyleContextCarlos Garnacho2010-12-282-97/+130
|
* Make GtkScrolledWindow use GtkStyleContextCarlos Garnacho2010-12-281-32/+80
|
* Make GtkEventBox use GtkStyleContext.Carlos Garnacho2010-12-281-11/+9
|
* Make GtkFrame use GtkStyleContext.Carlos Garnacho2010-12-282-65/+114
|
* Fix leak in GtkStyle.Carlos Garnacho2010-12-281-3/+8
|
* Avoid rendering frames when shadow type argument is GTK_SHADOW_NONE inTristan Van Berkom2010-12-281-9/+19
| | | | gtk_paint_* functions.
* Fix docs.Ignacio Casal Quinteiro2010-12-281-1/+3
|
* Remove bashisms from configure.acMatthias Clasen2010-12-271-4/+4
| | | | | Pointed out by Koop Mast in https://bugzilla.gnome.org/show_bug.cgi?id=637974
* API: gdk: Remove gdk_device_set_source()Benjamin Otte2010-12-274-21/+0
| | | | The source of a device is not changeable.
* testgtk: Don't use deprecated APIsBenjamin Otte2010-12-271-10/+19
|
* testgtk: Use the relevant device to query the widget to snapshotBenjamin Otte2010-12-271-4/+4
| | | | Also gets rid of deprecated functions.
* API: gdk: Make gdk_display_get_window_at_device_position() a device APIBenjamin Otte2010-12-279-56/+52
| | | | | It's now called gdk_device_get_window_at_position(). It doesn't make sense to keep device-specific API part of the display.
* API: gdk: gdk_display_get_device_state() => gdk_device_get_position()Benjamin Otte2010-12-2712-75/+77
| | | | | 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.
* [gail] Clean the code to check the redundan object on the show watcherAlejandro Piñeiro2010-12-271-7/+1
| | | | | | | | | The watcher doesn't add a window if is a redundant object. This patch fixes two things: * The check was made twice. * It uses a check with the string "redundant object", when the defined role ATK_ROLE_REDUNDANT_OBJECT is available
* [gail] Proper connection to a toplevel window destroy signalAlejandro Piñeiro2010-12-271-15/+17
| | | | | | | | | Only connect to the destroy of a toplevel window if it was really added to the toplevel list of windows. The destroy callback was added to remove the window from the toplevel list. The callback doesn't cause a error, but would iterate on the toplevel list without success.
* Fix some issues with initial setup of GdkX11DisplayManagerMatthias Clasen2010-12-272-5/+9
| | | | | | | | We need to defer setting the default display until the GdkDisplay is fully initialized. Also, short-circuit some encoding conversions when creating windows, to avoid an implicit dependency on the display being in the list of displays yet.
* GtkTreeView: Don't use deprecated grab apiMatthias Clasen2010-12-261-15/+15
|
* Remove pointless sealing from GtkTextMarkMatthias Clasen2010-12-261-12/+9
|
* Remove pointless sealing from GtkTextChildMatthias Clasen2010-12-261-5/+6
|
* Removed sealed members from GtkMenuItemMatthias Clasen2010-12-2610-978/+1025
|
* update Punjabi Properities fileA S Alam2010-12-271-1493/+1698
|
* tooltip: Don't use deprecated APIsBenjamin Otte2010-12-271-1/+5
|
* notebook: Use nondeprecated API to query coordinatesBenjamin Otte2010-12-271-1/+3
|
* hsv: Fix gcc warningsBenjamin Otte2010-12-271-3/+3
|
* Fix some more typosMatthias Clasen2010-12-252-3/+3
|
* Fix a few typosMatthias Clasen2010-12-251-29/+30
|