]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoMove documentation to inline comments: GtkFontButton
Javier Jardón [Mon, 11 Apr 2011 01:47:43 +0000 (02:47 +0100)]
Move documentation to inline comments: GtkFontButton

13 years agoMove documentation to inline comments: GtkCellRendererToggle
Javier Jardón [Mon, 11 Apr 2011 01:42:54 +0000 (02:42 +0100)]
Move documentation to inline comments: GtkCellRendererToggle

13 years agoMove documentation to inline comments: GtkHPaned
Javier Jardón [Mon, 11 Apr 2011 01:36:23 +0000 (02:36 +0100)]
Move documentation to inline comments: GtkHPaned

13 years agoMove documentation to inline comments: GtkInvisible
Javier Jardón [Mon, 11 Apr 2011 01:31:56 +0000 (02:31 +0100)]
Move documentation to inline comments: GtkInvisible

13 years agoMove documentation to inline comments: GtkCellRendererProgress
Javier Jardón [Mon, 11 Apr 2011 01:18:13 +0000 (02:18 +0100)]
Move documentation to inline comments: GtkCellRendererProgress

13 years agoMove documentation to inline comments: GtkMisc
Javier Jardón [Mon, 11 Apr 2011 01:04:11 +0000 (02:04 +0100)]
Move documentation to inline comments: GtkMisc

13 years agoMove documentation to inline comments: GtkImageMenuItem
Javier Jardón [Mon, 11 Apr 2011 01:13:02 +0000 (02:13 +0100)]
Move documentation to inline comments: GtkImageMenuItem

13 years ago[broadway] Remove expensive transparency effects from css
Alexander Larsson [Sun, 10 Apr 2011 19:10:07 +0000 (21:10 +0200)]
[broadway] Remove expensive transparency effects from css

13 years ago[broadway] Make the toplevel mode a url parameter
Alexander Larsson [Fri, 8 Apr 2011 13:36:07 +0000 (15:36 +0200)]
[broadway] Make the toplevel mode a url parameter

13 years ago[broadway] Position non-popup windows ourselves
Alexander Larsson [Fri, 8 Apr 2011 13:17:43 +0000 (15:17 +0200)]
[broadway] Position non-popup windows ourselves

We ignore the initial positions for non-popup windows, instead we
place the windows ourselves (or in the useToplevel mode by the WM).

13 years ago[broadway] Fix up toplevel content visibility in useToplevel mode
Alexander Larsson [Fri, 8 Apr 2011 13:16:32 +0000 (15:16 +0200)]
[broadway] Fix up toplevel content visibility in useToplevel mode

surfaces.canvas may change if we move to another document, so
reupdate the element to show after ensureSurfaceInDocument.

13 years ago[broadway] Move window to top when moving
Alexander Larsson [Fri, 8 Apr 2011 13:00:51 +0000 (15:00 +0200)]
[broadway] Move window to top when moving

13 years ago[broadway] Add some initial work for in-window frames
Alexander Larsson [Fri, 8 Apr 2011 09:45:51 +0000 (11:45 +0200)]
[broadway] Add some initial work for in-window frames

The css is based on work by Jasper St Pierre:
http://magcius.mecheye.net/vista/

13 years ago[broadway] Fix some typos in the js code
Alexander Larsson [Fri, 8 Apr 2011 09:45:16 +0000 (11:45 +0200)]
[broadway] Fix some typos in the js code

13 years ago[broadway] Use the right doctype for html5
Alexander Larsson [Fri, 8 Apr 2011 06:56:35 +0000 (08:56 +0200)]
[broadway] Use the right doctype for html5

13 years agoFix some crashes caused by unimplemented functions in GdkOffscreenWindow
Tristan Van Berkom [Fri, 8 Apr 2011 16:55:50 +0000 (01:55 +0900)]
Fix some crashes caused by unimplemented functions in GdkOffscreenWindow

These crashes happen when accessing GtkWindow properties and the
GdkWindow is an offscreen (fixes https://bugzilla.gnome.org/show_bug.cgi?id=647244)

13 years agoFree the translate queue when closing a display
Matthias Clasen [Sat, 9 Apr 2011 01:34:25 +0000 (21:34 -0400)]
Free the translate queue when closing a display

Not that many people are ever going to hit this.
https://bugzilla.gnome.org/show_bug.cgi?id=645236

13 years agoFix some possible crashes if the default display is NULL
Matthias Clasen [Sat, 9 Apr 2011 01:20:26 +0000 (21:20 -0400)]
Fix some possible crashes if the default display is NULL

Unlikely that many people will hit these, but still.
https://bugzilla.gnome.org/show_bug.cgi?id=645176

13 years agoAvoid a warning out of the print dialog
Matthias Clasen [Sat, 9 Apr 2011 00:46:57 +0000 (20:46 -0400)]
Avoid a warning out of the print dialog

Reported in https://bugzilla.gnome.org/show_bug.cgi?id=647152

13 years agothemingengine: don't set a line width before saving the cairo context
Cosimo Cecchi [Thu, 7 Apr 2011 19:22:18 +0000 (15:22 -0400)]
themingengine: don't set a line width before saving the cairo context

https://bugzilla.gnome.org/show_bug.cgi?id=647086

13 years agoseparator: call gtk_style_context_restore() after drawing
Cosimo Cecchi [Thu, 7 Apr 2011 19:21:51 +0000 (15:21 -0400)]
separator: call gtk_style_context_restore() after drawing

https://bugzilla.gnome.org/show_bug.cgi?id=647086

13 years agocalendar: make sure to call gtk_style_context_restore()
Cosimo Cecchi [Thu, 7 Apr 2011 19:21:32 +0000 (15:21 -0400)]
calendar: make sure to call gtk_style_context_restore()

https://bugzilla.gnome.org/show_bug.cgi?id=647086

13 years agoDo not leak list when drawing notebook.
Paolo Borelli [Wed, 6 Apr 2011 04:18:18 +0000 (06:18 +0200)]
Do not leak list when drawing notebook.

When we construct the list in the other order we must free it.

https://bugzilla.gnome.org/show_bug.cgi?id=646886

13 years agoGdkDevice: Remove duplicate private function
Carlos Garnacho [Fri, 8 Apr 2011 14:23:39 +0000 (16:23 +0200)]
GdkDevice: Remove duplicate private function

_gdk_device_get_axis_use() dates back to pre-sealing, when the
xi2 work began, this remaining can be gone with a public
gdk_device_get_axis_use() function already in place.

13 years ago[broadway] Enable useToplevelWindow by default for now
Alexander Larsson [Thu, 7 Apr 2011 19:16:36 +0000 (21:16 +0200)]
[broadway] Enable useToplevelWindow by default for now

13 years ago[broadway] Implement selections
Alexander Larsson [Thu, 7 Apr 2011 18:21:22 +0000 (20:21 +0200)]
[broadway] Implement selections

13 years ago[broadway] Remove unused hashtables
Alexander Larsson [Thu, 7 Apr 2011 18:20:51 +0000 (20:20 +0200)]
[broadway] Remove unused hashtables

13 years agoMake gtkclipboard.c:clipboard_get_timestamp multi-backend safe
Alexander Larsson [Thu, 7 Apr 2011 18:19:30 +0000 (20:19 +0200)]
Make gtkclipboard.c:clipboard_get_timestamp multi-backend safe

We can't just check for the backend defines, we have to do runtime checks too.

13 years ago[broadway] Add gdk_broadway_display_get_last_seen_time
Alexander Larsson [Thu, 7 Apr 2011 18:18:13 +0000 (20:18 +0200)]
[broadway] Add gdk_broadway_display_get_last_seen_time

13 years ago[broadway] Fix up header guards to not refer to gdkx.h
Alexander Larsson [Thu, 7 Apr 2011 18:04:48 +0000 (20:04 +0200)]
[broadway] Fix up header guards to not refer to gdkx.h

13 years ago[broadway] Add gdkbroadway.h public header
Alexander Larsson [Thu, 7 Apr 2011 17:25:16 +0000 (19:25 +0200)]
[broadway] Add gdkbroadway.h public header

13 years ago[broadway] Serialize event times
Alexander Larsson [Thu, 7 Apr 2011 17:12:51 +0000 (19:12 +0200)]
[broadway] Serialize event times

Event times come from the browser and may change weirdly when we reconnect
with another browser, so we normalize these to be strictly increasing
and with a 5 second gap for each reconnect.

13 years ago[broadway] Fix typo in implicit grab support
Alexander Larsson [Thu, 7 Apr 2011 13:26:37 +0000 (15:26 +0200)]
[broadway] Fix typo in implicit grab support

We do an implicit grab if there is no grab already, not only if there is
one.

13 years ago[broadway] Handle screen size
Alexander Larsson [Thu, 7 Apr 2011 13:10:39 +0000 (15:10 +0200)]
[broadway] Handle screen size

Without this menu placement doesn't work right

13 years ago[broadway] Track and report last and future state
Alexander Larsson [Thu, 7 Apr 2011 12:36:30 +0000 (14:36 +0200)]
[broadway] Track and report last and future state

This fixes the drawing area demo in gtk-demo

13 years ago[broadway] Report mouse pointer coordinates right
Alexander Larsson [Thu, 7 Apr 2011 12:29:26 +0000 (14:29 +0200)]
[broadway] Report mouse pointer coordinates right

The windows argument to device_query_state can be a client side
window, but we must only handle the "native" part of it (i.e.
window->impl->wrapper).

13 years ago[broadway] Fix all unnecessary warnings
Alexander Larsson [Wed, 6 Apr 2011 20:23:35 +0000 (22:23 +0200)]
[broadway] Fix all unnecessary warnings

13 years ago[broadway] Wire up the delete event
Alexander Larsson [Wed, 6 Apr 2011 20:13:18 +0000 (22:13 +0200)]
[broadway] Wire up the delete event

13 years ago[broadway] Report right root coors in toplevel mode
Alexander Larsson [Wed, 6 Apr 2011 14:51:31 +0000 (16:51 +0200)]
[broadway] Report right root coors in toplevel mode

13 years ago[broadway] Add configure event for browser-side geometry changes
Alexander Larsson [Wed, 6 Apr 2011 14:39:07 +0000 (16:39 +0200)]
[broadway] Add configure event for browser-side geometry changes

Atm this only works for the useToplevelWindows case, but we can add
a browser wm to make use of it inside the browser too.

13 years ago[broadway] Add experimental toplevel window mode
Alexander Larsson [Wed, 6 Apr 2011 09:40:40 +0000 (11:40 +0200)]
[broadway] Add experimental toplevel window mode

This mode makes each toplevel window get its own browser window, with
popup windows using the browser window of their transient parent.

Its not idea, as you can't get rid of all browser chrome by default, and
it means popups (like menus) can't extend outside the toplevels. But, it is
kinda cool.

13 years ago[broadway] Fixup ungrab reference to old time variable
Alexander Larsson [Wed, 6 Apr 2011 09:00:32 +0000 (11:00 +0200)]
[broadway] Fixup ungrab reference to old time variable

13 years ago[broadway] Break out document setup into its own function
Alexander Larsson [Wed, 6 Apr 2011 08:03:42 +0000 (10:03 +0200)]
[broadway] Break out document setup into its own function

In the future we might have more documents (one per toplevel browser
window).

13 years ago[broadway] Remove unused grab.time on browser side
Alexander Larsson [Wed, 6 Apr 2011 08:01:53 +0000 (10:01 +0200)]
[broadway] Remove unused grab.time on browser side

13 years ago[broadway] Break out all command handling to separate functions
Alexander Larsson [Wed, 6 Apr 2011 07:57:31 +0000 (09:57 +0200)]
[broadway] Break out all command handling to separate functions

We don't want to mix up the argument parsing with the actual implementation.

13 years ago[broadway] Make the surface object a plain js object, not the context
Alexander Larsson [Wed, 6 Apr 2011 07:46:49 +0000 (09:46 +0200)]
[broadway] Make the surface object a plain js object, not the context

13 years ago[broadway] Centralize surface creation code in js
Alexander Larsson [Wed, 6 Apr 2011 07:32:15 +0000 (09:32 +0200)]
[broadway] Centralize surface creation code in js

13 years ago[broadway] Track window type in browser
Alexander Larsson [Tue, 5 Apr 2011 10:27:43 +0000 (12:27 +0200)]
[broadway] Track window type in browser

13 years ago[broadway] Track transient_for
Alexander Larsson [Tue, 5 Apr 2011 10:02:46 +0000 (12:02 +0200)]
[broadway] Track transient_for

13 years ago[broadway] Remove unused query pointer message
Alexander Larsson [Tue, 5 Apr 2011 08:52:40 +0000 (10:52 +0200)]
[broadway] Remove unused query pointer message

13 years ago[broadway] Don't roundtrip for getting current pointer location
Alexander Larsson [Tue, 5 Apr 2011 08:45:51 +0000 (10:45 +0200)]
[broadway] Don't roundtrip for getting current pointer location

Roundtrips are bad, and this gets called a lot, so we use all currently
availible future info to "emulate" a full roundtrip, but with much lower
cost.

13 years ago[broadway] Add _gdk_broadway_display_consume_all_input
Alexander Larsson [Tue, 5 Apr 2011 08:44:53 +0000 (10:44 +0200)]
[broadway] Add _gdk_broadway_display_consume_all_input

This parses and queues all currently availible input data non-blockingly.
Useful to ensure the latest up-to-date future info.

13 years ago[broadway] Track future pointer events locations during parsing
Alexander Larsson [Tue, 5 Apr 2011 08:43:52 +0000 (10:43 +0200)]
[broadway] Track future pointer events locations during parsing

We want this info so that we can avoid roundtrips and still get
a somewhat better querying for pointer locations.

13 years ago[broadway] Add helper for processing input at idle
Alexander Larsson [Tue, 5 Apr 2011 08:43:04 +0000 (10:43 +0200)]
[broadway] Add helper for processing input at idle

13 years ago[broadway] Keep track of current real cursor window (sans grabs)
Alexander Larsson [Tue, 5 Apr 2011 08:03:14 +0000 (10:03 +0200)]
[broadway] Keep track of current real cursor window (sans grabs)

We need this to be able to do a non-roundtripping get-window.

13 years ago[broadway] Break out _gdk_broadway_display_read_all_input_nonblocking
Alexander Larsson [Fri, 1 Apr 2011 15:07:17 +0000 (17:07 +0200)]
[broadway] Break out _gdk_broadway_display_read_all_input_nonblocking

This is useful in other places, like when we want to iterate over
all messages recieved so far.

13 years ago[broadway] Make pointer grabs not roundtrip
Alexander Larsson [Fri, 1 Apr 2011 14:29:03 +0000 (16:29 +0200)]
[broadway] Make pointer grabs not roundtrip

Since we're really only initializing grabs (except for implicit
grabs at least) from the client side we might as well do all the grab
time checks on the client side to avoid unnecassary roundtrips.

13 years ago[broadway] Save last event time seen
Alexander Larsson [Fri, 1 Apr 2011 13:46:01 +0000 (15:46 +0200)]
[broadway] Save last event time seen

13 years ago[broadway] Parse broadway input messages earlier
Alexander Larsson [Fri, 1 Apr 2011 13:08:28 +0000 (15:08 +0200)]
[broadway] Parse broadway input messages earlier

We now parse the broadway messages as soon as they are read from the wire.
This will let us sanely do lookahead in the message queue later.

13 years agoGtkColorButton: Don't leak references
Matthias Clasen [Wed, 6 Apr 2011 04:56:37 +0000 (00:56 -0400)]
GtkColorButton: Don't leak references

https://bugzilla.gnome.org/show_bug.cgi?id=646815

13 years agoUpdate Czech translation
Petr Kovar [Wed, 6 Apr 2011 01:43:06 +0000 (03:43 +0200)]
Update Czech translation

13 years ago[l10n]Fixes on Catalan translation
Jordi Serratosa [Mon, 4 Apr 2011 19:29:22 +0000 (21:29 +0200)]
[l10n]Fixes on Catalan translation

13 years ago[l10n]Fixes on Catalan translation
Jordi Serratosa [Mon, 4 Apr 2011 19:20:32 +0000 (21:20 +0200)]
[l10n]Fixes on Catalan translation

13 years agoFixed bug in GtkSizeRequest code where the cache is not reset properly
Tristan Van Berkom [Mon, 4 Apr 2011 04:58:05 +0000 (13:58 +0900)]
Fixed bug in GtkSizeRequest code where the cache is not reset properly

Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500

13 years agoUpdated Brazilian Portuguese translation
Rodolfo Ribeiro Gomes [Mon, 4 Apr 2011 14:11:26 +0000 (11:11 -0300)]
Updated Brazilian Portuguese translation

13 years agoUpdated Traditional Chinese translation (Hong Kong and Taiwan)
Chao-Hsiung Liao [Mon, 4 Apr 2011 12:27:38 +0000 (20:27 +0800)]
Updated Traditional Chinese translation (Hong Kong and Taiwan)

13 years agoUpdated Bengali translation
Jamil Ahmed [Mon, 4 Apr 2011 10:40:12 +0000 (16:40 +0600)]
Updated Bengali translation

13 years ago[l10n]Updated Catalan translation
Gil Forcada [Sun, 3 Apr 2011 23:07:15 +0000 (01:07 +0200)]
[l10n]Updated Catalan translation

13 years agoMake gdk_x11_window_set_theme_variant do nothing for non-toplevels
Matthias Clasen [Sun, 3 Apr 2011 21:40:37 +0000 (17:40 -0400)]
Make gdk_x11_window_set_theme_variant do nothing for non-toplevels

This avoids problems when calling this e.g. on offscreen windows.

13 years agoKeymap: properly initialize lock state
Matthias Clasen [Sat, 2 Apr 2011 22:39:28 +0000 (18:39 -0400)]
Keymap: properly initialize lock state

We need to get explicitly lock state initially, before we can
rely on state changed events to track it.
https://bugzilla.gnome.org/show_bug.cgi?id=645341

13 years agoFixed warning catch in gtk_window_compute_hints().
Tristan Van Berkom [Sun, 3 Apr 2011 09:09:22 +0000 (18:09 +0900)]
Fixed warning catch in gtk_window_compute_hints().

13 years agoUpdated Russian translation
Yuri Kozlov [Sun, 3 Apr 2011 16:15:51 +0000 (20:15 +0400)]
Updated Russian translation

13 years agotheme: Fix prelight on selected rows' expanders
Carlos Garnacho [Sun, 3 Apr 2011 10:21:57 +0000 (12:21 +0200)]
theme: Fix prelight on selected rows' expanders

There was no prelight effect on selected rows' expanders with the
builtin theme, noticed by Kris Rietveld.

13 years agoUpdated Romanian translation
Lucian Adrian Grijincu [Fri, 11 Mar 2011 10:15:38 +0000 (11:15 +0100)]
Updated Romanian translation

13 years agoUpdated Danish translation
Ask H. Larsen [Sat, 2 Apr 2011 17:45:07 +0000 (19:45 +0200)]
Updated Danish translation

13 years agol10n: Updated Greek translation for gtk+
George Stefanakis [Sat, 2 Apr 2011 14:57:50 +0000 (17:57 +0300)]
l10n: Updated Greek translation for gtk+

13 years agoUploaded Ukranian
Daniel Korostil [Sat, 2 Apr 2011 13:38:07 +0000 (16:38 +0300)]
Uploaded Ukranian

13 years agoGtkAppChooserButton: avoid some leaks
Matthias Clasen [Sat, 2 Apr 2011 03:52:46 +0000 (23:52 -0400)]
GtkAppChooserButton: avoid some leaks

gtk_tree_model_get() returns a reference for objects.
https://bugzilla.gnome.org/show_bug.cgi?id=646462

13 years agoFix some refcounting issues in the print dialog
Matthias Clasen [Sat, 2 Apr 2011 02:02:38 +0000 (22:02 -0400)]
Fix some refcounting issues in the print dialog

gtk_tree_model_get returns a reference for objects, but the
printers in the model can be NULL,
https://bugzilla.gnome.org/show_bug.cgi?id=646446

13 years ago[filechooser] Free things which got duplicated or reffed by gtk_tree_model_get()
Federico Mena Quintero [Fri, 1 Apr 2011 22:16:17 +0000 (16:16 -0600)]
[filechooser] Free things which got duplicated or reffed by gtk_tree_model_get()

We had forgotten to do that in a few places; this is a systematic search for those.

https://bugzilla.gnome.org/show_bug.cgi?id=646461

13 years ago[filechooser] Unref cancellables we got from the model, not the ones that come into...
Federico Mena Quintero [Fri, 1 Apr 2011 22:06:51 +0000 (16:06 -0600)]
[filechooser] Unref cancellables we got from the model, not the ones that come into the callback

The model_cancellables have an extra ref when we get them from gtk_tree_model_get().
So, we need to unref them always.  On the other hand, the cancellables that get
passed as arguments to the callbacks in question are memory-managed by
GtkFileSystemModel.

Reported by Morten Welinder <mortenw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=646460

13 years ago[filechooser] Don't leak a GFile
Federico Mena Quintero [Fri, 1 Apr 2011 19:25:24 +0000 (13:25 -0600)]
[filechooser] Don't leak a GFile

Reported by Morten Welinder <mortenw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=646458

13 years ago[filechooser] Don't add extra ref to file, as it it comes from gtk_tree_model_get()
Federico Mena Quintero [Fri, 1 Apr 2011 18:44:10 +0000 (12:44 -0600)]
[filechooser] Don't add extra ref to file, as it it comes from gtk_tree_model_get()

Leak kindly reported by leak finder extraordinaire Morten Welinder <mortenw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=646457

13 years agoAdded GtkEntry:completion property
Juan Pablo Ugarte [Fri, 1 Apr 2011 22:35:32 +0000 (19:35 -0300)]
Added GtkEntry:completion property

13 years agoUpdated Hungarian translation
Gabor Kelemen [Fri, 1 Apr 2011 13:12:56 +0000 (15:12 +0200)]
Updated Hungarian translation

13 years agoUpdated Hungarian translation
Gabor Kelemen [Fri, 1 Apr 2011 13:16:57 +0000 (15:16 +0200)]
Updated Hungarian translation

13 years agoUpdated Brazilian Portuguese translation
Gabriel F. Vilar [Fri, 1 Apr 2011 12:11:15 +0000 (09:11 -0300)]
Updated Brazilian Portuguese translation

13 years agohindi updated
Rajesh Ranjan [Fri, 1 Apr 2011 09:26:12 +0000 (14:56 +0530)]
hindi updated

13 years agohindi updated
Rajesh Ranjan [Fri, 1 Apr 2011 09:24:43 +0000 (14:54 +0530)]
hindi updated

13 years agoCall _exit instead of exit from X error handlers
Matthias Clasen [Thu, 31 Mar 2011 23:59:00 +0000 (19:59 -0400)]
Call _exit instead of exit from X error handlers

This is because running atexit() handlers from there is
usually bad news.
https://bugzilla.gnome.org/show_bug.cgi?id=646338

13 years ago * gtk/gtktreeselection.c:
Juan Pablo Ugarte [Thu, 31 Mar 2011 22:03:52 +0000 (19:03 -0300)]
 * gtk/gtktreeselection.c:
   Added missing GtkTreeSelection:mode property.
   Closes bug #645960 "GtkTreeSelection has no property to set mode"

13 years agoUpdated Portuguese translation
Duarte Loreto [Thu, 31 Mar 2011 22:19:39 +0000 (23:19 +0100)]
Updated Portuguese translation

13 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 31 Mar 2011 19:30:57 +0000 (21:30 +0200)]
[l10n] Updated German translation

13 years agoUpdated Brazilian Portuguese translation
Djavan Fagundes [Thu, 31 Mar 2011 14:42:31 +0000 (11:42 -0300)]
Updated Brazilian Portuguese translation

13 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 31 Mar 2011 07:41:05 +0000 (09:41 +0200)]
[l10n] Updated German translation

13 years agoUpdated Bulgarian translation
Alexander Shopov [Thu, 31 Mar 2011 03:36:40 +0000 (06:36 +0300)]
Updated Bulgarian translation

13 years agoUpdated Serbian translation
Miroslav Nikolić [Wed, 30 Mar 2011 23:11:14 +0000 (01:11 +0200)]
Updated Serbian translation

13 years agoUploaded Ukranian
Daniel Korostil [Wed, 30 Mar 2011 14:54:43 +0000 (17:54 +0300)]
Uploaded Ukranian

13 years agowidget: Propagate the right states to the widget when setting the parent
Benjamin Otte [Wed, 30 Mar 2011 14:38:45 +0000 (16:38 +0200)]
widget: Propagate the right states to the widget when setting the parent

13 years agowidget: Get rid of parent_sensitive flag
Benjamin Otte [Wed, 30 Mar 2011 14:15:21 +0000 (16:15 +0200)]
widget: Get rid of parent_sensitive flag

Instead rely on state_flags & GTK_STATE_FLAG_INSENSITIVE to tell us if a
widget is sensitive.
This has the huge benefit that the way the widget is actually rendered
corresponds to the return value of gtk_widget_is_sensitive().

As a side effect, we do not ever allow unsetting the
GTK_STATE_FLAG_INSENSITIVE for a widget the is set to not be sensitive
(via gtk_widget_set_sensitive()). This way we stop propagation of making
stuff sensitive at insensitive widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=642918