After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773211 - properties-window cleanups and improvements
properties-window cleanups and improvements
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: general
master
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-19 09:47 UTC by Ernestas Kulik
Modified: 2021-06-18 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
properties-window: merge create_page_with_{h,v}box() (4.22 KB, patch)
2016-10-19 09:57 UTC, Ernestas Kulik
committed Details | Review
properties-window: do not expand prompt separator (1.07 KB, patch)
2016-10-19 10:39 UTC, Ernestas Kulik
committed Details | Review
properties-window: use g_file_get_relative_path() (3.10 KB, patch)
2016-10-22 09:44 UTC, Ernestas Kulik
none Details | Review
properties-window: use NautilusFile utility functions where available (4.09 KB, patch)
2016-10-22 09:44 UTC, Ernestas Kulik
none Details | Review
properties-window: use g_file_get_relative_path() (3.12 KB, patch)
2016-10-24 11:24 UTC, Ernestas Kulik
committed Details | Review
properties-window: use NautilusFile utility functions where available (4.09 KB, patch)
2016-10-24 11:25 UTC, Ernestas Kulik
committed Details | Review

Description Ernestas Kulik 2016-10-19 09:47:42 UTC
In all instances where I had touched the code for the properties window, I was not very pleased with the experience. I will look at what I can improve and attach patches here.
Comment 1 Ernestas Kulik 2016-10-19 09:57:00 UTC
Created attachment 338002 [details] [review]
properties-window: merge create_page_with_{h,v}box()

The two functions are now nearly identical with the deprecation of
Gtk{H,V}Box.
Comment 2 Ernestas Kulik 2016-10-19 10:39:17 UTC
Created attachment 338003 [details] [review]
properties-window: do not expand prompt separator

Currently, when packing the separator for the prompt, it is expanded.
That means that it can grow vertically as the window grows, creating a
visually unappealing effect.
Comment 3 Ernestas Kulik 2016-10-22 09:44:41 UTC
Created attachment 338252 [details] [review]
properties-window: use g_file_get_relative_path()

Currently, a custom function is used to achieve the same effect as one
can with g_file_get_relative_path().
Comment 4 Ernestas Kulik 2016-10-22 09:44:46 UTC
Created attachment 338253 [details] [review]
properties-window: use NautilusFile utility functions where available

Some functions used are implemented in NautilusFile and can be removed.
Comment 5 Carlos Soriano 2016-10-24 10:18:31 UTC
Review of attachment 338002 [details] [review]:

oh yes, thanks!
Comment 6 Carlos Soriano 2016-10-24 10:32:10 UTC
Review of attachment 338003 [details] [review]:

ugh, LGTM
Comment 7 Carlos Soriano 2016-10-24 10:33:18 UTC
Review of attachment 338252 [details] [review]:

::: src/nautilus-properties-window.c
@@ +5532,3 @@
             else
             {
+                g_autoptr (GFile) file_location;

all g_autoptr should be initialized to NULL.

@@ +5534,3 @@
+                g_autoptr (GFile) file_location;
+                g_autoptr (GFile) icon_location;
+                g_autofree gchar *real_icon_uri;

same for g_autofree
Comment 8 Carlos Soriano 2016-10-24 10:36:16 UTC
Review of attachment 338253 [details] [review]:

ah yes

::: src/nautilus-properties-window.c
@@ +4882,3 @@
+    gboolean is_special;
+
+    is_special = (file == NULL ||

not need for parenthesses
Comment 9 Ernestas Kulik 2016-10-24 11:24:59 UTC
Created attachment 338338 [details] [review]
properties-window: use g_file_get_relative_path()

Currently, a custom function is used to achieve the same effect as one
can with g_file_get_relative_path().
Comment 10 Ernestas Kulik 2016-10-24 11:25:05 UTC
Created attachment 338339 [details] [review]
properties-window: use NautilusFile utility functions where available

Some functions used are implemented in NautilusFile and can be removed.
Comment 11 Carlos Soriano 2016-10-24 13:37:18 UTC
Review of attachment 338338 [details] [review]:

yeah
Comment 12 Carlos Soriano 2016-10-24 13:37:47 UTC
Review of attachment 338339 [details] [review]:

+1
Comment 13 Ernestas Kulik 2016-10-24 14:23:18 UTC
Attachment 338002 [details] pushed as fa86719 - properties-window: merge create_page_with_{h,v}box()
Attachment 338003 [details] pushed as f56bc51 - properties-window: do not expand prompt separator
Attachment 338338 [details] pushed as 014ba7a - properties-window: use g_file_get_relative_path()
Attachment 338339 [details] pushed as bb00273 - properties-window: use NautilusFile utility functions where available
Comment 14 André Klapper 2021-06-18 15:50:42 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.