summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
Commit message (Collapse)AuthorAgeFilesLines
* pathbar: Order button CSS nodes rightBenjamin Otte2016-03-201-4/+4
| | | | | The previous code ordered them the wrong way, so the first button (from a CSS pov) was the last visible one.
* path bar: Stop mishandling slider buttonsMatthias Clasen2016-03-131-3/+22
| | | | | | We must call get_preferred_width/height on the slider buttons before allocating them, otherwise the layout machinery spews warnings.
* pathbar: Use CSS node orderingBenjamin Otte2016-01-261-114/+10
| | | | Instead of the custom get_path_for_child() function.
* path bar: Don't hide arrowsMatthias Clasen2016-01-241-3/+3
| | | | | | | | | Changing the visibility of child widgets in size-allocate does not work well with out current allocation and layout machinery. To avoid the visual fallout, just keep the arrow buttons visible and only change their sensitivity. https://bugzilla.gnome.org/show_bug.cgi?id=754868
* dnd: Split GtkDragSourceSite into its own fileBenjamin Otte2015-11-251-0/+1
|
* Use gtk_widget_set_focus_on_click() instead of deprecated settersFlorian Müllner2015-11-031-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757269
* path bar: Don't use prerendered surfacesMatthias Clasen2015-09-041-65/+25
| | | | | | | | The current icon handling did not update icons for widget state changes, causing black-on-black icons in HighContrast. Instead, use the GIcon. https://bugzilla.gnome.org/show_bug.cgi?id=753397
* pathbar: use the same parameter as in the declarationIgnacio Casal Quinteiro2015-02-191-3/+3
|
* path bar: Don't segfault if we get disposed quicklyMatthias Clasen2015-01-191-0/+4
| | | | | | | | The file chooser code now calls into the path bar in init, starting an async operation. This unveiled that the path bar code was not safe against being disposed early, by causing a crahsh of the objects-finalize test. Fix this by making the callback check for CANCELLED.
* widget: Make _gtk_set_simple_clip() take an optional content clipBenjamin Otte2014-08-211-2/+2
|
* GtkPathBar: Don't hardcode spacing in buttonsMatthias Clasen2014-08-131-1/+1
| | | | The theme will be changed to provide padding.
* GtkPathBar: Make recoloring symbolics workMatthias Clasen2014-08-131-6/+8
| | | | | We were only recreating the icons the very first time the theme changed, and not every time as was intended.
* GtkPathBar: Use symbolic iconsMatthias Clasen2014-07-231-8/+9
| | | | | This fits better with the symbolic icons we use in the places sidebar now.
* GtkPathBar: Set style classes on buttonsMatthias Clasen2014-07-231-0/+10
| | | | | Set text-button/image-button on these, just like we do for buttons everywhere else.
* GtkPathBar: Add a style classMatthias Clasen2014-07-171-0/+1
| | | | | This will allow nautilus to reuse the style on its own pathbar widget.
* pathbar: Implement clippingBenjamin Otte2014-07-151-1/+7
| | | | .. so the path bar's buttons can have shadows.
* Drop GtkArrow use in GtkPathBarMatthias Clasen2014-05-131-1/+0
| | | | This was just an unneeded include anyway.
* docs: use proper quotesWilliam Jon McCann2014-02-051-2/+2
|
* resources: move resources into a subdirectoryWilliam Jon McCann2014-01-231-1/+1
|
* path bar: Request enough natural width to fit all buttonsMatthias Clasen2014-01-181-1/+1
| | | | | Otherwise, we are at the mercy of the container giving us more space than we request, which does not always work.
* all: Add names to timeoutsBastien Nocera2013-10-231-0/+2
| | | | | | | Add names to every timeout we setup, so it's easier to track their usage, and debug possible misbehaviour. https://bugzilla.gnome.org/show_bug.cgi?id=710651
* pathbar: fix positioning of the down slider buttonCosimo Cecchi2013-08-311-9/+14
| | | | | | So that it's always linked with the rest of the pathbar. https://bugzilla.gnome.org/show_bug.cgi?id=706722
* pathbar: remove unused spacing private memberCosimo Cecchi2013-08-311-25/+18
| | | | | | It's always zero. https://bugzilla.gnome.org/show_bug.cgi?id=706722
* GtkPathBar: Don't make current dir boldMatthias Clasen2013-08-311-46/+1
| | | | | | This is closer to the nautilus path bar. https://bugzilla.gnome.org/show_bug.cgi?id=706451
* pathbar: add back GTK_STYLE_CLASS_LINKEDCosimo Cecchi2013-08-201-0/+5
| | | | | | | This was accidentally removed in commit 42f53ab58e3f905b242029c2ea446d79d2113725 https://bugzilla.gnome.org/show_bug.cgi?id=706028
* Another round of template binding api changesMatthias Clasen2013-07-261-2/+2
| | | | | | | | | | | We rename the gtk_widget_class_bind_template_child{_internal} macros by appending a _private to their name. Otherwise, it would be too magic to pass the 'public' names as arguments, but affect a member of the Private struct. At the same time, Add two new macros with the old names, gtk_widget_class_bind_template_child{_internal} that operate on members of the instance struct.
* Rename the widget template APIEmmanuele Bassi2013-07-261-10/+10
| | | | | | | | | | | | | | | | | | | | The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
* widget: Use a real offset in gtk_widget_class_automate_childAlexander Larsson2013-07-261-2/+2
| | | | | | | | | | Using an offset from the struct means you can have children in both the public and private (via G_PRIVATE_OFFSET) parts of the instance. It also matches the new private macros nicer. https://bugzilla.gnome.org/show_bug.cgi?id=702563 Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Drop some unnecessary includesMatthias Clasen2013-07-191-1/+0
| | | | | Drop includes of deprecated headers where they are no longer needed.
* Move wholly deprecated classes to gtk/deprecated/Matthias Clasen2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | We've recently a number of classes wholly. For these cases, move the headers and sources to gtk/deprecated/ and adjust Makefiles and includes accordingly. Affected classes: GtkAction GtkActionGroup GtkActivatable GtkIconFactory GtkImageMenuItem GtkRadioAction GtkRecentAction GtkStock GtkToggleAction GtkUIManager
* Deprecate and ignore the timeout-initial and timeout-repeat settingsWilliam Jon McCann2013-07-111-12/+4
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* File chooser: Convert icons to using cairo_surface_twip/window-scales2Alexander Larsson2013-07-031-23/+23
|
* Deprecate GtkIconFactory, GtkIconSet, GtkIconSourceWilliam Jon McCann2013-06-261-4/+1
| | | | | We want to use GtkIconTheme instead. It is worth noting that the parts that remain undeprecated are GtkIconSize and gtk_icon_size_lookup.
* Deprecate and ignore gtk-icon-sizes settingWilliam Jon McCann2013-06-261-2/+1
| | | | | We don't have icons rendered at arbitrary sizes and we have better APIs that aren't restricted to GtkIconSizes.
* GtkPathBar: Define children with a GtkBuilder templateTristan Van Berkom2013-04-081-279/+296
|
* Deprecate gtk_widget_push_composite_child & friendsTristan Van Berkom2013-04-081-6/+0
| | | | | | | | Deprecate gtk_widget_push_composite_child, gtk_widget_pop_composite_child, gtk_widget_set_composite_name, gtk_widget_get_composite_name. This API is just bloat and was never useful, this patch deprecates it and removes all internal calls to the composite child APIs
* Add gtk_widget_(un)register_windowAlexander Larsson2013-02-071-2/+2
| | | | | | | | | | | | This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
* pathbar: fix a copy/paste error from last commitCosimo Cecchi2012-05-021-2/+4
| | | | | We need to update the child pointer to the current iterator when going trough the button list.
* pathbar: Only invalidate styles in allocate if stuff really changedBenjamin Otte2012-05-021-3/+16
| | | | | I still don't like queueing restyles in size_allocate(), but I can't come up with a better mechanims for the way the pathbar works today.
* widget: Don't cache widget paths all the timeBenjamin Otte2012-04-171-1/+1
| | | | | | Add an internal API that allows GtkStyleContext to create a widget path for the widget and with that bypassing gtk_widget_get_path() and that function caching the path.
* gtk: Make widget only invalidate widget positionsBenjamin Otte2012-04-171-3/+7
| | | | Instead of resetting them completely
* gtk: Get gtkwidgetpath.h includes out of the public headersBenjamin Otte2012-03-191-0/+1
| | | | and include them in the C files instead.
* types: Clean up gtkwidget.h includesBenjamin Otte2012-03-031-4/+5
| | | | | | | In particular gtksettings.h and gtkstylecontext.h needed to be included in lots of places now. Also, I order the includes alphabetically in a bunch of headers.
* pathbar: Fix scrollingMatthias Clasen2012-03-021-0/+2
| | | | | We need to select for scroll events on the buttons now, selecting for button events no longer gives us scrolling as a side-effect.
* pathbar: Fix gcc warningBenjamin Otte2012-03-031-0/+2
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtkpathbar: Use symbolic names for button numbersCarlos Garcia Campos2012-01-271-1/+1
|
* [GtkPathBar] Remove unused error argumentFederico Mena Quintero2011-11-291-8/+5
| | | | | | | | It used to be that _gtk_path_bar_set_file() would return an error if it wasn't able to switch to the specified file, but that hasn't been the case for a long while now, since the file chooser became async. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* [path-bar] Add some comments to explain the async recursion on an I/O callbackFederico Mena Quintero2011-11-291-0/+6
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>