summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* window: Drop size-allocate usagewip/oholy/drop-size-allocateOndrej Holy2022-01-071-10/+11
| | | | | | The `size-allocate` signal is used to determine width of the sidebar, but it is no more availabe in GTK 4. Let's use `notifiy::position` on `GtkPaned` instead to get rid of the runtime warnings.
* query-editor: HACK for search entry event forwardAntónio Fernandes2022-01-051-1/+16
| | | | We should build our own custom entry instead of doing this.
* files-view: Drop arrow from background context menuAntónio Fernandes2022-01-051-0/+2
| | | | It doesn't have an specific target to point to.
* toolbar: visual refinementsAntónio Fernandes2022-01-051-48/+49
|
* Adw goodiesAntónio Fernandes2022-01-053-77/+43
|
* view-icon-item-ui: Use .caption style for captionsAntónio Fernandes2022-01-051-3/+3
| | | | Instead of .dim-label.
* view-icon-item-ui: Use GtkPicture instead of GtkImageAntónio Fernandes2022-01-053-5/+5
| | | | | | | | | GtkImage is simpler now, with only 2 available sizes. We need to use the new GtkPicture instead to restore the expected icon sizes. It can grow to fill the space available to fit the intrinsic size of the image. -gtk-icon-filter CSS extensions don't work on GtkPicture. Instead, use a filter to achieve a similar visual result.
* properties-window: Set Image pixel sizeAntónio Fernandes2022-01-051-0/+6
| | | | | GtkImage no longer sets an icon size on construction. Set a pixel size which matches the intrinsic size of the paintable.
* css: Replace legacy color namesAntónio Fernandes2022-01-051-25/+14
| | | | With the actual colors they are now alias for.
* css: Update custom styles for current stylesheetAntónio Fernandes2022-01-051-19/+19
|
* view-icon-controller: Set .view style classAntónio Fernandes2022-01-051-0/+1
| | | | | Removing redundant custom styles revealed we weren't adding this the class to this view, as we should.
* css: Drop unused, redundant or obsolete stylesAntónio Fernandes2022-01-051-35/+0
|
* application: Unconditionally add custom stylesAntónio Fernandes2022-01-051-38/+5
| | | | | | | | | With libadwaita, the existing code wasn't loading the custom themes as it should. But thanks to libadwaita, we can make assumptions on the existing stylesheet. In the future we may want to unify our 2 css files and maybe adopt AdwApplication to have it load the custom styles automatically.
* general: Drop parameter from GtkEntry::icon-* signalsAntónio Fernandes2022-01-053-3/+0
| | | | The signal signature changed and doesn't include a GdkEvent anymore.
* general: Assorted leftovers changes -- IT BUILDS NOWAntónio Fernandes2022-01-0516-24/+21
|
* general: GdkPixbuf -> GdkPaintable/GdkTextureAntónio Fernandes2022-01-0513-133/+133
| | | | | | | | | | | Generally we should be able to use any paintable. Unfortunately GtkCellRendererPixbuf doesn't accept paintables other than textures. The other two usages of textures require a GIcon. We could create a GThemedIcon using GtkIconPaintable:icon-name, but to keep changes at a minimum short here, that's left for a later enhancement.
* window: gtk_window_get_size() -> gtk_window_get_default_size()António Fernandes2022-01-051-19/+1
| | | | The new method ignores maximized and tiled size, which is convenient.
* window: GtkWidget.delete_event() -> GtkWindow.close_request()António Fernandes2022-01-051-4/+5
|
* general: Replace GtkBindingSet with GtkShortcutAntónio Fernandes2022-01-053-20/+11
| | | | As per porting guide.
* search-popover: Adapt to GtkCalendar API changesAntónio Fernandes2022-01-051-16/+3
| | | | GDateTime-centric now.
* general: Adapt to gtk_show_uri* API changesAntónio Fernandes2022-01-052-9/+6
|
* general: Drop GtkIconSize parametersAntónio Fernandes2022-01-057-29/+13
| | | | As per migration guide.
* -- WIP -- must focusAntónio Fernandes2022-01-054-18/+43
|
* search-engine-recent: Adapt to GtkRecentInfo time getter changesAntónio Fernandes2022-01-051-10/+6
| | | | They return an internal GDateTime pointer now, not a time_t.
* general: Adapt to GtkDrawingArea API changesAntónio Fernandes2022-01-053-17/+27
| | | | Now we set a function instead of listening to a signal.
* general: GtkSpinner:active -> GtkSpinner:spinningAntónio Fernandes2022-01-052-2/+2
|
* general: Replace child properties with GtkStackPageAntónio Fernandes2022-01-052-9/+9
|
* general: Adapt to GtkFileChooser API changesAntónio Fernandes2022-01-052-8/+8
| | | | The API is GFIle-only now, and as such always supports non-local URIs.
* general: gtk_toggle_button_*() -> gtk_check_button_*()António Fernandes2022-01-054-29/+29
| | | | Check button is not a subclass of toggle button anymore.
* monitors -- squash with later changeAntónio Fernandes2022-01-051-1/+1
|
* general: GdkScreen -> GdkDisplayAntónio Fernandes2022-01-052-5/+5
|
* general: gtk_label_set_line_wrap -> gtk_label_set_wrapAntónio Fernandes2022-01-052-2/+2
|
* general: GdkWindow -> GdkSurfaceAntónio Fernandes2022-01-053-23/+22
| | | | | Also includes some backend-specific API changes which are more than simple substitution.
* general: Adapt to coordinate parameter type changesAntónio Fernandes2022-01-052-12/+12
| | | | Coordinates are generally doubles now.
* general: Use new cursor APIAntónio Fernandes2022-01-055-44/+17
| | | | There is no need to go through GDK anymore.
* general: gtk_widget_show_all() -> gtk_widget_show()António Fernandes2022-01-0520-29/+28
| | | | | All widgets are visible by default. So, there is no need to make children visible.
* general: Adapt to EventController API changesAntónio Fernandes2022-01-0511-175/+109
| | | | | We no longer have to keep a reference and manage their lifecycle, because gtk_widget_add_controller() takes ownership of the controller.
* --- WIP --- Scroll-event for ZOOMAntónio Fernandes2022-01-051-57/+26
|
* general: GtkWidget::get_toplevel() -> GtkWidget::get_root()António Fernandes2022-01-0510-25/+25
|
* general: GtkGestureMultiPress -> GtkGestureClickAntónio Fernandes2022-01-056-84/+84
|
* files-view: GtkOverlay:pass-through -> GtkWidget:can-targetAntónio Fernandes2022-01-051-16/+6
| | | | As per porting guide
* general: Update API moved from GtkEntry to GtkEditableAntónio Fernandes2022-01-0513-46/+46
|
* general: Discard const qualifier for GdkEventAntónio Fernandes2022-01-054-7/+7
| | | | | The struct members are private now, so this is meaningless and the API no longer expects it.
* general: gdk_event_get_state -> gdk_event_get_modifier_stateAntónio Fernandes2022-01-053-5/+5
|
* general: Update copy-pasted GTK codeAntónio Fernandes2022-01-0518-3197/+2225
| | | | | | And update other code for the API changes. REGRESSION: Populating the sidebar context menu is disabled.
* general: Use gtk_window_destroy() instead of gtk_widget_destroy()António Fernandes2022-01-0518-39/+39
|
* general: Adapt to popover API changesAntónio Fernandes2022-01-058-34/+60
| | | | | | | | GMenuModel-bound popovers become GtkPopoverMenu and have a parent instead of an attach widget. If the parent doesn't have built-in popover support (such as GtkMenuButton), then we must manage the popover lifecycle explicitly and call gtk_popover_present() when moving parent.
* resources/ui: Update definitions for GTK4António Fernandes2022-01-0524-1845/+1555
| | | | | Manually curated from the output of 'gtk4-builder-tool simplify --3to4' and further streamlined and validated with 'gtk4-builder-tool validate'.
* general: GtkWidget:can_focus -> GtkWidget:focusableAntónio Fernandes2022-01-0510-53/+53
| | | | | As per porting guide. GtkWidget:can-focus stil exists but has a different meaning now.
* general: Port from libhandy to libadwaitaAntónio Fernandes2022-01-0523-79/+80
| | | | | | libhandy is GTK 3-only. libadwaita is not only its functional successor, but also the new GNOME platform library, so it makes sense for a core GNOME app to depend on it for platform integration.