summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* general: Replace gtk_entry_get_text()wip/ernestask/gtk4-continuedErnestas Kulik2019-06-298-26/+101
| | | | Now the GtkEditable API should be used for that.
* query-editor: Drop unused variableErnestas Kulik2019-06-291-2/+0
|
* nautilus-toolbar.ui: Lessen disgustingly large marginErnestas Kulik2019-06-291-1/+1
|
* meson.build: Use environment to make warnings fatalErnestas Kulik2019-06-291-1/+1
| | | | --g-fatal-warnings no longer exists in GTK 4.
* properties-window: Tweak code styleErnestas Kulik2019-06-291-9/+6
|
* general: Stop setting file icon as window iconErnestas Kulik2019-06-292-37/+7
| | | | | GTK lost support for setting window icons from textures, as not all backends support that.
* nautilus-toolbar.ui: Drop submenu child propertyErnestas Kulik2019-06-291-6/+0
|
* preferences-window: Use GtkBuilder constructorErnestas Kulik2019-06-291-7/+2
| | | | We can actually see if it errors out in that case.
* nautilus-preferences-window.ui: Rename internal child to “content_area”Ernestas Kulik2019-06-291-1/+1
| | | | It’s no longer “vbox”.
* general: Use GtkStackPage in GtkStackErnestas Kulik2019-06-294-356/+379
|
* general: Drop position child propertiesErnestas Kulik2019-06-296-377/+0
| | | | Those are gone wherever they existed.
* general: Drop gtk_box_pack_end()Ernestas Kulik2019-06-293-4/+4
|
* mime-application-chooser: Drop GtkButtonBoxErnestas Kulik2019-06-291-4/+1
|
* general: Drop gtk_box_pack_start()Ernestas Kulik2019-06-2912-57/+67
|
* meson.build: Rename GTK 4 dependencyErnestas Kulik2019-06-291-1/+1
| | | | No more +!
* pathbar: Refactor size-allocate handler slightlyErnestas Kulik2019-06-291-46/+55
| | | | | This updates the handler signature, uses consistent loop style, renames some variables and removes others.
* files-view-dnd: Drop GDK_ACTION_DEFAULTErnestas Kulik2019-06-291-5/+1
| | | | | It’s been removed from GTK+, and its use has been discouraged before that as well.
* files-view: Adapt to changes in GtkEventControllerScrollErnestas Kulik2019-06-291-3/+5
| | | | | The ::scroll handler now returns a boolean value to indicate whether the event was handled.
* preferences-window.ui: Declutter icon view caption sectionErnestas Kulik2019-06-291-105/+38
| | | | | There were too many containers at play. We have a perfectly good grid, so let’s just put everything in it.
* general: Implement and use our own theatric containerErnestas Kulik2019-06-2910-587/+408
| | | | | | | | | | | This commit introduces NautilusTheatricBin, a GtkBin that allows adding a flash effect to any widget. The widget replaces IdeBoxTheatric from libegg (libdazzle), which is incompatible with the GTK+ 4 rendering model, but still uses the same tweening machinery. One problem that is relevant to our use case is that GtkRevealer clips the child widget if the transition type is not NONE or CROSSFADE, so the end result is not quite as expected.
* eel: canvas: Handle touch events alongside button pressesErnestas Kulik2019-06-291-0/+2
| | | | | | | | | Since the GtkGestureMultiPress also supports touch events, the code should treat them as button events, otherwise an assertion may be reached in a bad spot. In particular, eel_canvas_handle_event() does that in the default case. Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/582
* list-view: Fix button press handlingErnestas Kulik2019-06-291-7/+5
| | | | | | | | Before, the code would call the button_press_event() vfunc on the child tree view, but that’s no longer a thing one can do. A workaround for that could be querying the current event and calling gtk_widget_event() on the tree view, so the event coordinates don’t end up being doubly translated (gtk_widget_event_internal() does this).
* ui: Hide state overlays by defaultErnestas Kulik2019-06-294-0/+4
| | | | | | | In GTK+ 4, the overlays for various different states (empty folder, no search results, etc.) are visible by default and can be seen when creating a new tab or opening a new location. That is fixable by hiding them by default.
* notebook: Expand spinnerErnestas Kulik2019-06-291-0/+1
| | | | | The spinner in the notebook tabs is currently start-aligned, so expanding it fixes it not being centered.
* list-view: Fix secondary button presses on column headersErnestas Kulik2019-06-291-28/+38
| | | | | | | | | | | This commit replaces the removed comparison of the event and tree view bin windows with a check for negative coordinates, which will be the case after converting the event coordinates when a header is pressed. Additionally, this replaces the GtkWidget::event handlers with gestures. Checking for negative coordinates could probably be removed if the gestures were cleverly reordered, so that the header ones run first and claim the sequence.
* files-view: Replace GtkWidget::event handler with key controllerErnestas Kulik2019-06-291-15/+16
|
* batch-rename-dialog: Replace ::event handlers with controllersErnestas Kulik2019-06-291-64/+41
|
* list-view: Drop detail/priv structsErnestas Kulik2019-06-2912-1575/+1267
| | | | | This commit does that for all list view types, as I can’t keep track of it anymore.
* toolbar: Don’t hide location entry when window becomes inactiveErnestas Kulik2019-06-291-10/+15
| | | | | | This broke with replacing focus event handlers with listening to changes in GtkWidget::has-focus, which doesn’t change in the toplevel when the window goes inactive while the focus is on the entry.
* toolbar: Fix GtkEntry::populate-popup handlerErnestas Kulik2019-06-291-3/+1
| | | | It shouldn’t return a value.
* rename-file-popover-controller: Use controller for key eventsErnestas Kulik2019-06-291-23/+14
|
* general: Fix header inclusionsErnestas Kulik2019-06-296-2/+8
|
* canvas-item: Use GObject macros to define typeErnestas Kulik2019-06-295-319/+288
|
* selection-canvas-item: Use GObject macros to define typeErnestas Kulik2019-06-293-72/+44
|
* canvas-private: Remove unused codeErnestas Kulik2019-06-291-31/+0
|
* application: Make type finalErnestas Kulik2019-06-292-122/+70
| | | | The desktop is long gone and we don’t derive from it anywhere.
* files-view: Remove unused signalErnestas Kulik2019-06-292-18/+0
|
* file: Tweak code formattingErnestas Kulik2019-06-291-2/+1
|
* properties-window: Fix usage chartErnestas Kulik2019-06-291-27/+32
| | | | | | | | | Until now, the usage pie chart was drawn by connecting to ::draw of the GtkDrawingArea, which has since been obsoleted. Luckily to us, one can very easily just set the draw function of the drawing area. This commit does just that and fixes styling issues by moving out class addition to just before drawing (2 px solid borders were being applied to the entire drawing area, which wasn’t an intended look).
* window-slot: Remove unused vfuncsErnestas Kulik2019-06-291-4/+0
|
* properties-window: Set thumbnail GtkImage size explicitlyErnestas Kulik2019-06-291-0/+3
| | | | | | | The icon size of a GtkImage is GTK_ICON_SIZE_INHERIT by default, which is the size of a regular button, given that the parent element is a button. This commit sets the pixel size of the GtkImage to that of the displayed thumbnail.
* icon-info: Clean up APIErnestas Kulik2019-06-297-349/+304
| | | | | | This merges some getter functions into one with additional parameters, so that duplicate code can be avoided. Additionally, this converts callers to use textures where possible.
* pathbar: Remove event GdkWindowErnestas Kulik2019-06-291-81/+0
|
* canvas-dnd: Fix DnD shadowsErnestas Kulik2019-06-293-105/+82
|
* file-conflict-dialog: Use textures for file thumbnailsErnestas Kulik2019-06-293-26/+29
|
* canvas-container: Draw DnD highlight in snapshot()Ernestas Kulik2019-06-292-33/+32
| | | | …instead of connecting to GtkWidget::draw, which has been removed.
* view-icon-item-ui: Use GdkTexture for thumbnailErnestas Kulik2019-06-291-8/+7
|
* nautilus-toolbar.ui: Remove main box marginErnestas Kulik2019-06-291-1/+0
| | | | | Since the addition of a GtkGizmo in GtkPopoverMenu, the content is already padded by 8 px.
* file: Remove references to folder-open iconErnestas Kulik2019-06-292-14/+8
| | | | It’s no longer actually used.
* list-model: Use GdkTexture for iconErnestas Kulik2019-06-293-90/+48
| | | | GtkCellRendererPixbuf no longer allows using Cairo surfaces.