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 791548 - selection-toolbar: Port to GtkBuilder xml
selection-toolbar: Port to GtkBuilder xml
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-12-13 01:02 UTC by Mohammed Sadiq
Modified: 2017-12-24 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
selection-toolbar: Port to GtkBuilder xml (26.14 KB, patch)
2017-12-13 01:02 UTC, Mohammed Sadiq
none Details | Review
selection-toolbar: Port to GtkBuilder xml (26.14 KB, patch)
2017-12-13 01:08 UTC, Mohammed Sadiq
none Details | Review
selection-toolbar: Port to GtkBuilder xml (25.20 KB, patch)
2017-12-20 06:50 UTC, Mohammed Sadiq
committed Details | Review

Description Mohammed Sadiq 2017-12-13 01:02:34 UTC
.
Comment 1 Mohammed Sadiq 2017-12-13 01:02:43 UTC
Created attachment 365468 [details] [review]
selection-toolbar: Port to GtkBuilder xml

Using GtkBuilder xml files for UI separates UI from program
logic. This helps simplify maitaining the code.
Comment 2 Mohammed Sadiq 2017-12-13 01:08:02 UTC
Created attachment 365469 [details] [review]
selection-toolbar: Port to GtkBuilder xml

Using GtkBuilder xml files for UI separates UI from program
logic. This helps simplify maitaining the code.
Comment 3 Isaque Galdino 2017-12-19 14:14:12 UTC
Review of attachment 365469 [details] [review]:

-  for (l=selection; l !=NULL; l=l->next)
+  for (l = selection; l != NULL; l = l->next)

I believe this is formatting change, so I wouldn't mix it up with this change.

+  /*
+   * HACK: When every item is deleted, Empty view is shown in the
+   * main window. Thus the action bar is hidden in the view.
+   * But it actually isn't. And the bar appears when the view
+   * is changed to Trash view.
+   * So hide the widget all together.
+   */
+  gtk_widget_hide (GTK_WIDGET (self));
+  gtk_revealer_set_reveal_child (GTK_REVEALER (self), FALSE);
   bjb_main_view_set_selection_mode (self->view, FALSE);

What about if we fix that in bjb_main_view_set_selection_mode?
Comment 4 Mohammed Sadiq 2017-12-20 06:50:43 UTC
Created attachment 365779 [details] [review]
selection-toolbar: Port to GtkBuilder xml

Using GtkBuilder xml files for UI separates UI from program
logic. This helps simplify maitaining the code.
Comment 5 Mohammed Sadiq 2017-12-20 06:55:32 UTC
(In reply to Isaque Galdino from comment #3) 
> I believe this is formatting change, so I wouldn't mix it up with this
> change.
> 
Fixed

> +  /*
> +   * HACK: When every item is deleted, Empty view is shown in the ...
> What about if we fix that in bjb_main_view_set_selection_mode?

It is possible, but I think it's better to delay until main-view and
window-base are ported to GtkBuilder, which will help us fix the issue
easier than adding yet another work around now.
Comment 6 Isaque Galdino 2017-12-24 19:21:56 UTC
Review of attachment 365779 [details] [review]:

Thanks.
Comment 7 Isaque Galdino 2017-12-24 19:22:40 UTC
(In reply to Mohammed Sadiq from comment #5)
> (In reply to Isaque Galdino from comment #3) 
> > +  /*
> > +   * HACK: When every item is deleted, Empty view is shown in the ...
> > What about if we fix that in bjb_main_view_set_selection_mode?
> 
> It is possible, but I think it's better to delay until main-view and
> window-base are ported to GtkBuilder, which will help us fix the issue
> easier than adding yet another work around now.

Agree.