diff options
author | António Fernandes <antoniojpfernandes@gmail.com> | 2022-01-09 01:25:39 +0000 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2022-01-09 01:25:39 +0000 |
commit | e358c2343c47aa26d568254a12f06a8431b2da42 (patch) | |
tree | 592e1ec16487dc510d699c2f5215c67b4ef16060 /extensions | |
parent | 041719803013e0a6c9e9b06bf3a35a9cbe2bf81b (diff) | |
download | nautilus-e358c2343c47aa26d568254a12f06a8431b2da42.tar.gz |
general: Switch to GTK4
The new major version of the toolkit is a requirement to fix old issues and enable future enhancements.
Update symbols and adapt logic to API changes.
Update and simplify UI definitions.
Update local copy of places sidebar and places view.
Replace dependencies with their GTK4-compatible successors.
Make a minimum changes required to build and run, with known
regressions to be fixed in future commits.
For a detailed breakup of the changes, see the 36 commits-deep
log leading to d5763facb1e5045251171ed1273dca0859f3542f.
This is the main part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/276
Diffstat (limited to 'extensions')
3 files changed, 6 insertions, 6 deletions
diff --git a/extensions/audio-video-properties/bacon-video-widget-properties.c b/extensions/audio-video-properties/bacon-video-widget-properties.c index b2b2aaf37..fca9dfd7d 100644 --- a/extensions/audio-video-properties/bacon-video-widget-properties.c +++ b/extensions/audio-video-properties/bacon-video-widget-properties.c @@ -276,7 +276,7 @@ bacon_video_widget_properties_new (void) g_object_unref (group); - gtk_widget_show_all (GTK_WIDGET (props)); + gtk_widget_show (GTK_WIDGET (props)); return GTK_WIDGET (props); } diff --git a/extensions/audio-video-properties/test-properties-page.c b/extensions/audio-video-properties/test-properties-page.c index 21be43a34..f52881625 100644 --- a/extensions/audio-video-properties/test-properties-page.c +++ b/extensions/audio-video-properties/test-properties-page.c @@ -38,7 +38,7 @@ create_props (const char *url) props = totem_properties_view_new (url, label); gtk_container_add (GTK_CONTAINER (window), props); - gtk_widget_show_all (window); + gtk_widget_show (window); } static void @@ -58,7 +58,7 @@ int main (int argc, char **argv) totem_gst_disable_display_decoders (); gst_init (&argc, &argv); - gtk_init (&argc, &argv); + gtk_init (); if (argc != 2) { g_print ("Usage: %s [URI]\n", argv[0]); diff --git a/extensions/image-properties/nautilus-image-properties-page.c b/extensions/image-properties/nautilus-image-properties-page.c index a8dd7a6d2..ea415aa69 100644 --- a/extensions/image-properties/nautilus-image-properties-page.c +++ b/extensions/image-properties/nautilus-image-properties-page.c @@ -80,7 +80,7 @@ append_item (NautilusImagesPropertiesPage *page, value_label = gtk_label_new (value); - gtk_label_set_line_wrap (GTK_LABEL (value_label), TRUE); + gtk_label_set_wrap (GTK_LABEL (value_label), TRUE); gtk_grid_attach_next_to (GTK_GRID (page->grid), value_label, name_label, GTK_POS_RIGHT, 1, 1); @@ -93,7 +93,7 @@ append_item (NautilusImagesPropertiesPage *page, static void nautilus_image_properties_page_init (NautilusImagesPropertiesPage *self) { - self->page_widget = gtk_scrolled_window_new (NULL, NULL); + self->page_widget = gtk_scrolled_window_new (); g_object_set (self->page_widget, "margin-bottom", 6, @@ -119,7 +119,7 @@ nautilus_image_properties_page_init (NautilusImagesPropertiesPage *self) self->grid); #endif - gtk_widget_show_all (GTK_WIDGET (self->page_widget)); + gtk_widget_show (GTK_WIDGET (self->page_widget)); } static void |