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 790750 - import-dialog: Rewrite logic and port to GtkBuilder
import-dialog: Rewrite logic and port to GtkBuilder
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-11-23 04:04 UTC by Mohammed Sadiq
Modified: 2017-12-11 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
import-dialog: Rewrite logic and port to GtkBuilder (30.31 KB, patch)
2017-11-23 04:04 UTC, Mohammed Sadiq
none Details | Review
import-dialog: Rewrite logic and port to GtkBuilder (30.50 KB, patch)
2017-11-23 04:33 UTC, Mohammed Sadiq
none Details | Review
Window resizing (15.22 KB, image/png)
2017-12-01 10:54 UTC, Isaque Galdino
  Details
import-dialog: Rewrite logic and port to GtkBuilder (30.54 KB, patch)
2017-12-01 11:48 UTC, Mohammed Sadiq
committed Details | Review

Description Mohammed Sadiq 2017-11-23 04:04:05 UTC
.
Comment 1 Mohammed Sadiq 2017-11-23 04:04:12 UTC
Created attachment 364256 [details] [review]
import-dialog: Rewrite logic and port to GtkBuilder

* Port to GtkBuilder xml ui definitions
* Create locations list only when asked for one.
Comment 2 Mohammed Sadiq 2017-11-23 04:33:30 UTC
Created attachment 364257 [details] [review]
import-dialog: Rewrite logic and port to GtkBuilder

* Port to GtkBuilder xml ui definitions
* Create locations list only when asked for one.
Comment 3 Isaque Galdino 2017-11-29 16:06:14 UTC
Review of attachment 364257 [details] [review]:

This piece of code I believe isn't related to this change, right?
diff --git a/src/bjb-app-menu.c b/src/bjb-app-menu.c
index dff6324..17f99c0 100644
--- a/src/bjb-app-menu.c
+++ b/src/bjb-app-menu.c
@@ -79,7 +79,7 @@ external_activated (GSimpleAction *action,
       g_free (uri);
     }
 
-    g_list_free (locations);
+    g_list_free_full (locations, g_free);
   }
 
   if (dialog)
Comment 4 Mohammed Sadiq 2017-11-30 03:27:07 UTC
(In reply to Isaque Galdino from comment #3)
> Review of attachment 364257 [details] [review] [review]:
> 
> This piece of code I believe isn't related to this change, right?
> -    g_list_free (locations);
> +    g_list_free_full (locations, g_free);
>    }

Isn't it? a list is transferred from the function (in import-dialog), which should be freed fully (not just the container as it was).

Or should I do this in a separate commit?
Comment 5 Isaque Galdino 2017-12-01 10:52:29 UTC
(In reply to Mohammed Sadiq from comment #4)
> Or should I do this in a separate commit?

Ok, let's keep it in this commit then.
Comment 6 Isaque Galdino 2017-12-01 10:54:16 UTC
Created attachment 364738 [details]
Window resizing

I believe you need to fix the resize of the window. I don't think we should leave user to resize it to be that tall.
Comment 7 Mohammed Sadiq 2017-12-01 11:48:57 UTC
Created attachment 364742 [details] [review]
import-dialog: Rewrite logic and port to GtkBuilder

* Port to GtkBuilder xml ui definitions
* Create locations list only when asked for one.

The dialog is no loneger user resizable.
Comment 8 Isaque Galdino 2017-12-11 13:36:06 UTC
Review of attachment 364742 [details] [review]:

Good!