summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* stylecontext: Update computed values when dependencies changeBenjamin Otte2012-08-281-2/+39
| | | | | | | This fixes the longstanding bug where GTK would not update styles when parent styles would change. https://bugzilla.gnome.org/show_bug.cgi?id=672046
* stylecontext: Refactor some codeBenjamin Otte2012-08-281-30/+29
| | | | | | This just changes the arguments passed to build_properties() and moves that function around in the source file. No functional changes are happening.
* css: Pass relevant properties to css lookup codeBenjamin Otte2012-08-283-6/+16
| | | | This is not used yet in this patch.
* computedvalues: Pass dependencies to set_value()Benjamin Otte2012-08-285-22/+19
| | | | This simplifies the code.
* stylecontext: Compute correct changesBenjamin Otte2012-08-281-11/+19
| | | | | | | ... in the case where no change of the DOM tree actually happened. We don't do anything yet with that information, this patch just correctly computes it.
* stylecontext: Split out a function for simplicityBenjamin Otte2012-08-281-25/+38
|
* cssomputedvalues: Track dependenciesBenjamin Otte2012-08-283-4/+44
| | | | | We now track what values have dependencies on what other values so that we could in theory recompute them when we need to.
* stylecontext: Pass the changes in the parent to validation functionBenjamin Otte2012-08-284-7/+19
| | | | This way, inherited properties can be updated.
* css: Introduce dependencies for value computationsBenjamin Otte2012-08-2824-85/+153
| | | | | | | | | When values are computed, they might depend on various other values and we need to track this so we can update the values when those other values change. This is the first step in making that happen. This patch does not do any dependency tracking at all, instead it uses GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.
* css: Move computing of initial and inherit valuesBenjamin Otte2012-08-285-82/+25
| | | | | ... to the compute vfunc. Simplifies code quite a bit. But makes the code no longer a simple step-by-step implementation of the spec.
* cssstyleproperty: Get rid of unused APIBenjamin Otte2012-08-285-84/+25
| | | | | | | Both _gtk_css_style_property_print_value() and _gtk_css_style_property_compute_value() aren't necessary anymore and are replaced by _gtk_css_value_print() and _gtk_css_value_comptue() respectively.
* csscustomproperty: Move compute code to GtkCssTypedValueBenjamin Otte2012-08-282-14/+4
| | | | This way, we don't need the print_value vfunc anymore.
* cssstyleproperty: Don't set print or compute vfuncs anymoreBenjamin Otte2012-08-281-114/+0
| | | | Nobody does that these days.
* cssstyleproperty: Remove all useless compute vfuncsBenjamin Otte2012-08-281-147/+35
| | | | | Now that we call _compute() by default, we don't need any special cases anymore that do the same thing.
* cssstyleproperty: Call _compute() in the compute functionBenjamin Otte2012-08-281-1/+1
| | | | ... instead pof just reffing the value.
* css: Move special case for 0px bordersBenjamin Otte2012-08-282-14/+38
| | | | This is in preparation for the next commits.
* css: Fold color value computation into gtksymboliccolor.cBenjamin Otte2012-08-286-80/+63
| | | | | | | This gets rid of the public function _gtk_css_rgba_value_compute_from_symbolic(). The fallback is now handled using a switch statement instead of letting the caller pass the function.
* css: Pass property_id to compute functionBenjamin Otte2012-08-2826-30/+58
| | | | | | | | | | | | | | | | This is a reorganization of how value computing should be done. Previously the GtkCssStyleProperty.compute vfunc was supposed to take care of special cases when it needed those for computation. However, this proved to be very complicated in cases where values were nested and only the last value (of a common type) needed to be special cased. A common example for this was the fallback handling for unresolvable colors. Now, we pass the property's ID along with all compute functions so we can do the special casing where it's necessary. Note that no actual changes happen in this commit. This will happen in follow-ups.
* css: Introduce _gtk_css_value_compute()Benjamin Otte2012-08-2831-275/+355
| | | | | | | This commit is essentially a large reorganization. Instead of all value subtypes having their own compute function, there is the general _gtk_css_value_compute() function that then calls a vfunc on the subtype.
* gkimmulticontext: Remove left over debug printAdel Gadllah2012-08-261-2/+0
| | | | | | Remove the g_print debug statement from propagate_purpose. https://bugzilla.gnome.org/show_bug.cgi?id=682747
* Fix a typo in the the commentsWilliam Jon McCann2012-08-266-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682724
* Docs: GtkAspectFrame: use top/bottom for vertical alignmentThomas Hindoe Paaboel Andersen2012-08-261-4/+4
| | | | | | Before left/right was used. https://bugzilla.gnome.org/show_bug.cgi?id=682662
* GtkIMMultcontext: Propagate input purpose and hintsMatthias Clasen2012-08-251-3/+36
| | | | | The lack of this was pointed out by Carlos Garnacho in https://bugzilla.gnome.org/show_bug.cgi?id=651244
* Add GTK_INPUT_HINT_INHIBIT_OSK to GtkInputHintsCarlos Garnacho2012-08-251-1/+4
| | | | | | | | | This hint may be used in text widgets to inhibit their input methods. The most compelling usecase is calculator applications, which already have a builtin and better suited onscreen keyboard. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* Trivial: Fix a whitespace messupMatthias Clasen2012-08-252-4/+4
| | | | Pointed out by Carlos Garnacho in bug 651244.
* Improve the layout of the mount operation dialogWilliam Jon McCann2012-08-241-73/+79
| | | | | | | | | This improves the layout of the mount operations dialog to: * Make primary labels bold in all cases * Lay out the widgets in a grid * Put space between the two radio groups to distinguish them https://bugzilla.gnome.org/show_bug.cgi?id=682552
* GtkWidget: fix insert_action_group(NULL)Ryan Lortie2012-08-231-1/+4
| | | | | | gtk_widget_insert_action_group (widget, "foo", NULL) is valid, but g_action_muxer_insert (muxer, "foo", NULL) is not. Use g_action_muxer_remove() for that case.
* Protect pasteboard GtkTargetPair flag values from being out of rangeJohn Ralls2012-08-221-0/+1
|
* Copy in annotations missing from gtkdnd-quartz and gtkclipboard-quartzJohn Ralls2012-08-222-25/+314
|
* GtkActionHelper: two small fixups in _set_target_value()Ryan Lortie2012-08-221-1/+8
| | | | | | | First, ensure we always consume floating values, as documented. Second (and more serious), don't try to query the action if the action name is not set yet. This will cause crashes...
* Don't left align label in check buttons when they have no indicatorWilliam Jon McCann2012-08-211-1/+14
| | | | | | Because they should be normal buttons in that case. https://bugzilla.gnome.org/show_bug.cgi?id=681617
* modelmenu: fix a GCC warningCosimo Cecchi2012-08-211-1/+1
| | | | | This should not be a const string, since the caller is supposed to free it.
* textview: fix a typo in method gtk-doc annotationCosimo Cecchi2012-08-211-1/+1
| | | | This was causing a warning from the introspection scanner.
* menubutton: use consistent parameter namesCosimo Cecchi2012-08-211-1/+1
| | | | Or the introspection scanner will emit a warning.
* Fix the doc buildMatthias Clasen2012-08-201-1/+2
|
* Fix exports for new symbolsMatthias Clasen2012-08-201-0/+4
|
* Add documentationMatthias Clasen2012-08-202-3/+126
| | | | | | | Document the new API and properties, and their interaction with existing properties. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* GtkTextView: Add input purpose and hintsMatthias Clasen2012-08-203-3/+118
| | | | | | | Add input-purpose and input-hints properties and pass these through to the GtkIMContext. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* GtkEntry: Add input purpose and hintsMatthias Clasen2012-08-203-1/+116
| | | | | | | Add input-purpose and input-hints properties to GtkEntry, and pass these on to GtkIMContext. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* GtkIMContext: Add purpose and hintsMatthias Clasen2012-08-201-1/+93
| | | | | | Add input-purpose and input-hints properties to GtkIMContext. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* enums: Add purpose enum and hints flags.Krzesimir Nowak2012-08-201-0/+84
| | | | | | | | This commit adds two enumerations that will be used to pass additional information to input methods, in the subsequent commits. https://bugzilla.gnome.org/show_bug.cgi?id=651244
* GtkMenuButton: rename _set_menu() to _set_popup()Ryan Lortie2012-08-205-64/+99
| | | | | | | | It's too close to the release so we'll keep _set_menu() around, but deprecate it, pointing to the new API. It will be removed (and the name reused) before the 3.6.0 release. https://bugzilla.gnome.org/show_bug.cgi?id=682235
* icon-view: emit selection-changed when changing the modelWilliam Jon McCann2012-08-201-0/+7
| | | | | | Only if there was a selection active. https://bugzilla.gnome.org/show_bug.cgi?id=681613
* gtkmodelmenu: add support for action namespacesLars Uebernickel2012-08-204-11/+74
| | | | | | If a section or submenu item has a "action-namespace" attribute, the action names of the created GtkModelMenuItems will be prefixed with that namespace. Namespaces can be cascaded.
* GtkApplicationWindow: drop GActionMuxer useRyan Lortie2012-08-201-14/+0
| | | | | | There are no remaining users of the GActionMuxer in GtkApplicationWindow because they've all been ported over to using the one on GtkWidget (via GtkActionHelper, for the most part).
* Drop GSimpleActionObserverRyan Lortie2012-08-203-339/+0
| | | | | The only place that this was being created was in GtkApplicationWindow and the last commit dropped that code.
* Remove private appwindow observer creation APIRyan Lortie2012-08-202-25/+0
| | | | | | There are no remaining users of the GtkApplicationWindow API to create GSimpleActionObserver or to get the GActionObservable (ie: muxer) for the appwindow. Drop those APIs.
* ApplicationWindow: setup accels with widget muxerLars Uebernickel2012-08-201-14/+5
| | | | | Use the muxer from GtkWidget to setup the accels rather than our own local muxer (which will soon be removed).
* Remove #include for muxer from gtkapplication.cRyan Lortie2012-08-201-1/+0
|
* Action helper support in Mac OS menus.William Hua2012-08-203-214/+76
|