summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add Composite Child machinery and APIs to GtkContainercomposite-templates-newTristan Van Berkom2013-03-204-2/+688
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements the needed machinery for GtkContainer to build it's composite content from GtkBuilder XML and adds the following API: o gtk_container_class_set_template_from_resource() and gtk_container_class_set_template_from_static_string() APIs to associate GtkBuilder XML to a given GtkContainer subclass o gtk_container_class_automate_child() API to declare an object built by GtkBuilder to be associated with an instance structure offset and automatically set. o gtk_container_get_automated_child() API for bindings to fetch a child declared to be automated by gtk_container_class_automate_child(), for the case where bindings do not generate GObjects under the hood and cannot use structure offsets to resolve composite object pointers. o gtk_container_class_declare_signal_callback[s]() Declare static functions to be used in signal callbacks from a given class's template XML o gtk_container_class_set_signal_connect_func() API for bindings to override the signal connection machinery for a given GtkContainer derived class.
* GtkBuilder: Add gtk_builder_extend_with_template()Tristan Van Berkom2013-03-205-11/+321
| | | | | | | | | | This adds the definition of the <template> tag with some documentation on the variant of the format. gtk_builder_extend_with_template() is to be used while GtkContainer builds from composite templates but can be used manually. A couple of error codes are also added to handle a few new possible failure cases.
* GtkBuilder: Added api to allow private signal callbacksTristan Van Berkom2013-03-203-12/+151
| | | | | | | | | | | | | | | | | | | | | In preperation for composite objects, for better encapsulation the following APIs are added to allow handling of signals declared in the XML with callbacks declared statically. o gtk_builder_add_callback_symbol[s]() Adds a symbol to the internal symbol hash o gtk_builder_lookup_symbol() Looks up a symbol, exposed in case added symbols are used in conjunction with gtk_builder_connect_signals_full() The default implementation of gtk_builder_connect_signals() now does not have a strong requirement on GModule (or a strong requirement on symbols being declared in the global namespace). Instead GModule is used as a fallback in the case that symbols are not declared explicitly.
* Assamese translation updatedNilamdyuti Goswami2013-03-201-90/+94
|
* L10N: Updated Persian TranslationArash Mousavi2013-03-201-300/+431
|
* Add an example for subtitles in header barsMatthias Clasen2013-03-191-1/+18
|
* GtkHeaderBar: Add subtitle supportMatthias Clasen2013-03-194-32/+211
| | | | As seen in GdHeaderBar.
* GtkHeaderBar: Survive toggling custom / non-custom titlesMatthias Clasen2013-03-191-26/+47
| | | | | | | | | The code was always adding a label widget as a child, but then skipping over it in forall if a custom_title was present. This confuses internal logic of GTK+ which assumes that it can iterate over the entire widget hierarchy with forall, to maintain state. Fix this by destroying the label when a custom_title is set, and recreating it as needed.
* test custom titles more thoroughlyMatthias Clasen2013-03-191-1/+19
| | | | | This adds a way to toggle between custom and non-custom titles in testheaderbar, which is currently broken.
* GtkHeaderBar: Don't leakMatthias Clasen2013-03-191-2/+12
| | | | | Should have a finalize function, if there's strings to free. Also avoid some pointless extra ref on custom title widgets.
* [l10n] Updated Catalan translationGil Forcada2013-03-191-276/+405
|
* wayland: Preserve dimensions separately for fullscreen / maximised caseRob Bradford2013-03-191-7/+16
| | | | | Use separate fields for saving the window dimensions prior to fullscreening and maximisation. Then use those fields to restore the window dimensions from.
* window: Use update_window_buttons to hide title on fullscreenRob Bradford2013-03-191-2/+1
| | | | | | | | | | | The function update_window_buttons shows or hides the title header after it has finished updating the visibility of the various buttons. Unfortunately this conflicted with the hiding of the title done when going fullscreen. This solves the problem and fixes the rendering of fullscreen applications by using update_window_buttons to control the visibility of the box in the fullscreen case.
* wayland: Implement gdk_window_[un]maximizeScott Moreau2013-03-181-2/+41
| | | | | | | | This allows the buttons in the decorations to maximise the window. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=695945 Signed-off-by: Rob Bradford <rob@linux.intel.com>
* broadway: Fix assert failureAlexander Larsson2013-03-181-7/+2
| | | | | | | Requests are not limited in size by BroadwayRequest, as BroadwayRequestTranslation can be of variable size. No need to copy the request anymore though, because requests are aligned now.
* broadway: Ensure broadway request members are 32bit alignedAlexander Larsson2013-03-182-3/+3
|
* gtk: gtk_init_with_args allows NULL for parameter_stringChristian Persch2013-03-181-1/+1
|
* Revert "GtkHeaderBar: Allow window dragging"Matthias Clasen2013-03-181-119/+0
| | | | | | | | This reverts commit 30a1a79322f4097ce47c2a08678479d00cc54b69. This turns out to be unnecessary when you can set the titlebar on the window and let GtkWindow handle the events. As a benefit, we get the window menu on custom titlebars for free.
* Use gtk_window_set_titlebar in testheaderbarMatthias Clasen2013-03-181-12/+23
| | | | | This demonstrates how custom titlebars work both with and without csd.
* Add documentation for gtk_window_set_titlebarMatthias Clasen2013-03-184-0/+18
|
* Add gtk_window_set_titlebarMatthias Clasen2013-03-182-48/+94
| | | | | | | | | 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.
* Small cleanup in gtk_window_drawMatthias Clasen2013-03-181-3/+2
| | | | Get the allocation once, at the beginning.
* window: Don't draw titlebar backgroundMatthias Clasen2013-03-181-21/+0
| | | | | GtkHeaderBar can do its own drawing, no need to do this in gtk_window_draw.
* Trivial whitespace fixMatthias Clasen2013-03-181-1/+1
|
* Add forgotten checkMatthias Clasen2013-03-181-0/+3
| | | | | We don't want to create titlebar widgets if the window is not decorated anyway.
* wayland: Always attach buffer before committingScott Moreau2013-03-181-7/+0
| | | | | | | | With recent changes in attach semantics, we always need to attach before committing. Without this changes to the window contents to not get reflected in the content of the surface. Signed-off-by: Rob Bradford <rob@linux.intel.com>
* wayland: Remove unneeded semicolonsScott Moreau2013-03-182-2/+2
| | | | Signed-off-by: Rob Bradford <rob@linux.intel.com>
* wayland: Remove unused wayland-egl headerScott Moreau2013-03-181-1/+0
| | | | | | This was left over from the work done in commit: d4a9863 Signed-off-by: Rob Bradford <rob@linux.intel.com>
* wayland: Set title on shell surfaces to window titleScott Moreau2013-03-181-0/+12
| | | | | | | We currently use this information to display the title string in the window list of the desktop shell. Signed-off-by: Rob Bradford <rob@linux.intel.com>
* Updated Latvian translationRūdolfs Mazurs2013-03-181-283/+424
|
* Assamese translation updatedNilamdyuti Goswami2013-03-181-205/+236
|
* Assamese translation updatedNilamdyuti Goswami2013-03-181-100/+110
|
* Fix Visual Studio Debug configsChun-wei Fan2013-03-188-8/+8
| | | | | The debug builds must link to the Debug version of the CRT, otherwise trouble will arise from mixing different CRTs into the resulting binary.
* Fix a typoMatthias Clasen2013-03-181-1/+1
|
* Add a headerbar testMatthias Clasen2013-03-182-0/+66
| | | | | Add a testcase for GtkHeaderBar that shows how it can be used without client-side decorations.
* GtkHeaderBar: Allow window draggingMatthias Clasen2013-03-181-0/+119
| | | | | We use the same window-dragging style property here to enable this as for menubars and toolbars.
* Fix double accounting of border widthMatthias Clasen2013-03-171-1/+3
| | | | | | For csd, we were subtracting the border width one too many times from the child height, causing clipped off content e.g. in the 'Properties' window in testgtk.
* Allocate the titlebar height according to widthMatthias Clasen2013-03-171-4/+6
|
* Add some visible border to the default csdMatthias Clasen2013-03-171-1/+1
|
* Replace GLE referenceMatthias Clasen2013-03-171-1/+1
| | | | Recommending gtkparasite is more useful nowadays.
* Updated galician translationsFran Diéguez2013-03-172-106/+153
|
* GtkFontButton: default show-preview-entry to TRUEMatthias Clasen2013-03-171-1/+1
| | | | | This is what the property declaration says, after all. https://bugzilla.gnome.org/show_bug.cgi?id=695948
* GtkEntryAccessible: also handle entry icon tooltip NULL in notify_gtk.Alban Browaeys2013-03-171-4/+20
| | | | | | | | | | | | | | | To clear the tooltip one is to set the tooltip to NULL. Though the GtkEntryAccessible expect this tooltip to not be NULL in gtk_entry_accessible_notify_gtk (already handling this case in its _init). Fixes: ** (epiphany:23914): CRITICAL **: atk_object_set_description: assertion `description != NULL' failed when epiphany g_object_set the entry icon tooltip to NULL (clear the tooltip) in its find bar. https://bugzilla.gnome.org/show_bug.cgi?id=695375
* GtkLabel: fix mnemonic-keyval when use-markup is trueSébastien Wilmet2013-03-171-10/+33
| | | | | | | | | | | | | | | To extract the mnemonic key value, the string must contain the underscore. But when the "gtk-auto-mnemonics" setting is true and when the Alt key is not pressed, the underscore must not be displayed. The problem was that the 'new_str' variable was used for both purposes: extract the text to display, and extract the accelerator character. When the underscore must not be visible, the underscores were removed from the 'new_str' variable before extracting the accelerator character. Now there are two strings, one for each purpose. https://bugzilla.gnome.org/show_bug.cgi?id=674759
* Updated POTFILES.inPiotr Drąg2013-03-172-0/+2
|
* css: Add style entries for client side decorations to default CSSRob Bradford2013-03-171-0/+73
|
* window: Render inner and outer border separatelyMatthias Clasen2013-03-171-10/+18
| | | | | This lets themes render a window frame in the inner border, and a shadow or nothing in the outer border.
* window: Split the border into inner and outerMatthias Clasen2013-03-171-26/+57
| | | | | | | | For now, nothing changes, we're using the sum of inner and outer border everywhere. In the future, we will make the inner border the visible window frame, and the outer border the shadow/resize border.
* window: Hide the border when maximizedMatthias Clasen2013-03-171-5/+16
| | | | Dragging windows from the border is not useful when maximized.
* window: Add a window menu to the titlebarMatthias Clasen2013-03-171-0/+128
| | | | | The menu is triggered by right-click on the titlebar or with the menu key.