summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* places sidebar: Preserve ::populate-popup functionalitywip/matthiasc/filechooser-touchMatthias Clasen2015-07-161-27/+78
| | | | | | | | We "fix" this signal the same way we did for GtkEntry and GtkTextView: slightly change the signature so that the passed widget may be a container other than a GtkMenu, and add a property to explicitly opt in to receiving the signal in this case.
* file chooser: Use a popover for the context menuMatthias Clasen2015-07-161-253/+255
| | | | | Use a popover for the context menu, and add a long press gesture to allow opening it with touch.
* places sidebar: Use a popover for the context menuMatthias Clasen2015-07-161-258/+224
| | | | | Use a popover for the context menu, and add a long press gesture to allow opening it with touch.
* filechooserwidget: use places view to manage fixed devicesGeorges Basile Stavracas Neto2015-07-152-7/+87
| | | | | | | | | | | | | | Previous patch modified places sidebar widget to stop handling fixed devices by adding an "Other Locations..." item. Up to now, however, these changes are isolated from each other since the bundled file manager widgets ignore the sidebar requests for external management of fixed devices and networks. To fix that, make the file chooser widget be aware of the GtkPlacesSidebar::show-other-locations signal and, when requested, show places view to manage the fixed devices and networks. https://bugzilla.gnome.org/show_bug.cgi?id=752034
* placessidebar: add Other Locations itemGeorges Basile Stavracas Neto2015-07-153-49/+193
| | | | | | | | | | | | | | | | | | | | Places sidebar is a widget that enabled the user to select XDG directories, bookmarks and mounted network locations, as well as manages permanent and removable devices. The new design that aims to look less clutered makes the sidebar display only removable devices, as well as mounted networks, bookmarks and XDG directories, and delegates the management of permanent devices such as hard drive partitions to GtkPlacesView, a newly introduced widget for this specific purpose. To delegate it, add an "Other Locations..." item to notify when the permanent devices manager is required. Besides that, don't show these fixes devices on the sidebar itself, as they are not supposed to be handled by the sidebar anymore. https://bugzilla.gnome.org/show_bug.cgi?id=752034
* placesview: add view for fixed drives and networksGeorges Basile Stavracas Neto2015-07-159-0/+3064
| | | | | | | | | | | | | | | | | | | | Places sidebar shows XDG directories, mounted and unmounted devices, connected networks, bookmarks and actions like 'Connect to server' and 'Insert location', which causes the sidebar to grow very quickly and look cluttered. Because of that, new mockups for the sidebar try to simplify it. To make the sidebar simpler, the new mockups propose that it should only handle connected networks and removable devices such as flash drives and USB devices, and delegates other devices for external widgets through the 'Other Locations' item. To handle fixed devices and manage network connections, add a new widget named GtkPlacesView, based on Nautilus mockups to keep consistency between GNOME file management tools - in this case, between Nautilus and the bundled Gtk's file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=752034
* Revert "x11: Query pointer devices' scroll valuators on toplevel enter events"Carlos Garnacho2015-07-153-30/+26
| | | | | | This reverts commit 77b8495bc4e51826afa451914d6a3b0df1b62a24. The commit broke more scenarios than fixed, better to go back to square one.
* GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* ↵Owen W. Taylor2015-07-152-1/+48
| | | | | | | | | | | | messages When using frame times from _NET_WM_FRAME_DRAWN and _NET_WM_FRAME_TIMINGS, we were treating them as local monotonic times, but they are actually extended-precision versions of the server time, and need to be translated to monotonic times in the case where the X server and client aren't running on the same system. This fixes rendering stalls when using X over a remote ssh connection. https://bugzilla.gnome.org/show_bug.cgi?id=741800
* places sidebar: Handle menu keyMatthias Clasen2015-07-151-0/+21
| | | | | It is good practice to handle the menu key and Shift-F10 to allow keyboard-driven use of context menus.
* mir: don't ensure_surface if window not visibleWilliam Hua2015-07-151-1/+3
|
* mir: don't warn if transient_for is NULLWilliam Hua2015-07-151-2/+0
|
* mir: add more default settings under mirWilliam Hua2015-07-151-0/+42
|
* Updated Portuguese translationPedro Albuquerque2015-07-151-84/+88
|
* Updated Spanish translationDaniel Mustieles2015-07-151-63/+41
|
* file chooser: Show progess spinner even if not emptyMatthias Clasen2015-07-151-6/+0
| | | | | | | With the previous approach, we could only show the spinner before we had any results. With the new approach, we can just leave the timeout in place and always show the spinner until the search is done.
* file chooser: Stop search when entry is clearedMatthias Clasen2015-07-151-0/+2
|
* file chooser: Refine search progress displayMatthias Clasen2015-07-152-22/+21
| | | | | Move the spinner to the search bar, so we can keep it around until the search is over.
* file chooser: Be more careful with subtitlesMatthias Clasen2015-07-141-2/+22
| | | | | | | | We were showing things like "Searching in (null)" if the current folder is not in the sidebar. Avoid that by falling back to using current_folder. Pointed out by Carlos Soriano.
* GtkApplication: avoid using stale timestampsRyan Lortie2015-07-142-31/+39
| | | | | | | | | | | | | | | | | | | | | | Avoid using a stale timestamp (from the last user interaction with the application) when a message arrives from D-Bus requesting that a new window be created. In this case the most-correct thing that we can do is to use no timestamp at all. We modify gdk_x11_display_set_startup_notification_id() to allow a NULL value to mean "reset everything" and then call this function unconditionally on receipt of D-Bus activation requests. The result will be that a missing desktop-startup-id in the platform-data struct will reset the timestamp. Under their default configuration metacity and mutter will both map windows presented with no timestamp in the foreground. This could result in false-positive, but there is very little we can do about that without the original timestamp from the user event. https://bugzilla.gnome.org/show_bug.cgi?id=752000
* gtkframe: Don't queue a redraw on the entire widget every size allocateJasper St. Pierre2015-07-141-2/+12
| | | | | | | | | | Lots of applications often use GtkFrame as a giant toplevel container, and that means that they get size allocated often. When frames get size allocated, they invalidate their entire widget tree, even if they haven't changed size or anything like that happens at all. This is because the shadow / label needs to be redrawn if the child changes size. We can optimize this out and only mark ourselves for a redraw if the child has actually changed its size.
* GtkButtonBox: remove spacing when buttons are linkedLars Uebernickel2015-07-145-6/+8
| | | | | | | | | | | | | | | GtkButtonBox adds the "linked" class to its style context when its layout is set to GTK_BUTTONBOX_EXPAND. It shouldn't ever make sense to have spacing between buttons in that case, as themes generally draw linked elements with a continuous border. Thus, always set spacing to 0 and ignore GtkDialog's button-spacing style property when the layout is set to EXPAND. Also remove the now-redundant css rules which set button-spacing to 0 for message dialogs. https://bugzilla.gnome.org/show_bug.cgi?id=752131
* range: Tweak button bindingsMatthias Clasen2015-07-131-79/+78
| | | | | | | | | | Change things around so that warp-to-click and jump-by-pages are bound to left-click and shift-left-click, depending on the value of gtk-primary-button-warps-slider. Autoscrolling is bound to right-click. To achieve this, reorganize gtk_range_multipress_gesture_pressed so that the functions are clearly separated.
* Updated Spanish translationDaniel Mustieles2015-07-131-810/+849
|
* Updated Spanish translationDaniel Mustieles2015-07-131-254/+475
|
* GtkSettings: Fix a documentation typoKalev Lember2015-07-121-1/+1
|
* range: Trivial field orderingMatthias Clasen2015-07-121-6/+7
|
* range: Add a stepper alternativeMatthias Clasen2015-07-121-10/+50
| | | | | | | Make shift right-click on the trough start autoscrolling. The autoscrolling is similar to the way steppers operate now, with the difference that we vary the scrolling speed based on the distance of the pointer from the widget.
* range: switch secondary and middle button on steppersMatthias Clasen2015-07-121-4/+4
| | | | | | | | | Clicking on steppers does different things depending on which button you use. We used to scroll to the end on secondary click and use high-speed autoscrolling on middle-click. Switch these two around, since the scroll-to-end functionality is less likely to be useful, and the seconary button makes the autoscrolling more easily available.
* font chooser: Remove a stray notifyMatthias Clasen2015-07-111-2/+0
| | | | | This was forgotten when I changed to font map to not be a property.
* file chooser: Clean up unused includesMatthias Clasen2015-07-111-17/+0
|
* file chooser: Remove some obsoltete codeMatthias Clasen2015-07-111-19/+0
| | | | | We no longer have editable rows in the list, so no need to check for them anymore.
* file chooser: Fix multi-selectionMatthias Clasen2015-07-111-115/+125
| | | | | | | | | | Even if we only ever hit the code with a singleton selection, calling gtk_tree_selection_get_selected is not ok if the tree selection mode allows multi-selection. Replace all calls to gtk_tree_selection_get_selected in the file chooser code with callback loops iterating over the selection. This problem was introduced with the recently added rename and delete menuitems.
* file chooser: Do less workMatthias Clasen2015-07-111-3/+1
| | | | | | We only need to update the sensitivity of the context menu items rihgt before we are going to pop it up. Everything else is pointless work.
* file chooser: Avoid doing excess workMatthias Clasen2015-07-111-0/+3
| | | | | | | | | Whenever we change directories, we unset the model, and then we set a new model. This causes several emissions of GtkTreeSelection::changed, for each of which we do a bunch of work to update the path bar, the location entry, etc. We can savely ignore some of these signals, and do less work.
* Trivial code cleanupMatthias Clasen2015-07-111-3/+1
|
* file chooser: Avoid animations when setting upMatthias Clasen2015-07-111-1/+17
| | | | | | There is no need to animate things when we are just setting up the startup mode, so disable transitions in the revealer and the stack. Pointed out by Carlos Soriano
* file chooser: Ensure we update subtitlesMatthias Clasen2015-07-111-1/+5
| | | | | | Notify the ::subtitle property when modes change that may affect it. Also ensure that we update the location mode when we switch back to the pathbar.
* cssnode: Only queue_validate() when node is visibleBenjamin Otte2015-07-101-9/+28
| | | | This avoids running animations in hidden toplevels.
* cssnode: Only invalidate sibling nodes if changed node is visibleBenjamin Otte2015-07-101-10/+25
|
* Updated Portuguese translationPedro Albuquerque2015-07-101-101/+101
|
* Added an additional explanation and code snippet for GtkImageMenuItem.cEric Williams2015-07-081-0/+29
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=752093
* Added a more meaningful description for /deprecated/gtkimagemenuitem.cEric Williams2015-07-081-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=752088
* places sidebar: Fix rows getting 'lost' when dnd failsMatthias Clasen2015-07-081-5/+1
| | | | | | | | | | There was some code that lead to the places sidebar loosing track of the row being dragged if a motion event came in between letting go of the button and the drag snap-back animation ending. This would cause us to not show the row again, giving the appearance that it was 'lost'. https://bugzilla.gnome.org/show_bug.cgi?id=751448
* testtoolbar: Don't expand rows that shouldn't be expandedBenjamin Otte2015-07-081-2/+0
|
* frame: Remove get_path_for_child implementationBenjamin Otte2015-07-081-20/+0
| | | | | | As far as I can read the code it added the .frame style class to the GtkFrame element. But GtKFrame already has a .frame style class these days.
* actionbar: Remove get_path_for_child implementationBenjamin Otte2015-07-081-13/+0
| | | | | It wasn't used because CSS walks the widget->parent chain, so it'd only ever call this func for priv->revealer.
* css: text-decoration-style is not inheritedBenjamin Otte2015-07-081-3/+1
|
* Simplify Xft setting fallbackMatthias Clasen2015-07-071-3/+2
| | | | | | | | If we don't find Xft values in the X resource db, simply fall back to the values that are hardcoded in /etc/X11/Xresources anyway. Extra trickery with likely-made-up screen dimensions is not going to yield better results, and only makes for a deeper rabbit hole when debugging.
* gtksidebarrow: remove unused propertyCarlos Soriano2015-07-071-28/+0
| | | | | | The sensitive property was a workaround which commit 3f8982a0cd7b779fe023bbd fixed. Just remove it now that is not necessary.
* gtkrevealer: fix preferred width calculationCarlos Soriano2015-07-071-2/+2
| | | | A typo which was using minimum_width for natural_width and viceversa.