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 698831 - Move loading an ui file to an util
Move loading an ui file to an util
Status: RESOLVED FIXED
Product: gnome-contacts
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-04-25 11:47 UTC by Paolo Borelli
Modified: 2013-08-31 03:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move loading an ui file to an util (2.57 KB, patch)
2013-04-25 11:47 UTC, Paolo Borelli
rejected Details | Review
Use an .ui file for the new contact dialog (12.47 KB, patch)
2013-04-25 11:48 UTC, Paolo Borelli
none Details | Review
Use an .ui file for the new contact dialog (12.85 KB, patch)
2013-04-25 13:01 UTC, Paolo Borelli
none Details | Review
Use GtkMenuButton instead of a custom widget (10.62 KB, patch)
2013-04-25 13:01 UTC, Paolo Borelli
rejected Details | Review

Description Paolo Borelli 2013-04-25 11:47:31 UTC
Loading from a resource cannot fail, so hide the try/catch in an util.
Also remove the custom vapi and setting the translation domain since
they are not needed anymore.
Comment 1 Paolo Borelli 2013-04-25 11:47:34 UTC
Created attachment 242405 [details] [review]
Move loading an ui file to an util
Comment 2 Paolo Borelli 2013-04-25 11:48:40 UTC
Created attachment 242406 [details] [review]
Use an .ui file for the new contact dialog
Comment 3 Paolo Borelli 2013-04-25 11:51:20 UTC
More cleanup is possible by using GtkMenuButton (and putting it in the ui file) instead of ContactsMenuButton, but it is not clear to me if ContactsMenuButton exists because it does something different or of it just predates the Gtk widget
Comment 4 Paolo Borelli 2013-04-25 11:52:48 UTC
Review of attachment 242406 [details] [review]:

I forgot to add the file to POTFILES.in, I'll do that if the patch is ok
Comment 5 Paolo Borelli 2013-04-25 13:01:22 UTC
Created attachment 242411 [details] [review]
Use an .ui file for the new contact dialog
Comment 6 Paolo Borelli 2013-04-25 13:01:35 UTC
Created attachment 242412 [details] [review]
Use GtkMenuButton instead of a custom widget
Comment 7 Erick Perez Castellanos 2013-04-25 15:13:43 UTC
(In reply to comment #3)
> More cleanup is possible by using GtkMenuButton (and putting it in the ui file)
> instead of ContactsMenuButton, but it is not clear to me if ContactsMenuButton
> exists because it does something different or of it just predates the Gtk
> widget

The ContactsMenuButton exist before GtkMenuButton, so I'll check but Ithink is a safe replace.
Comment 8 Erick Perez Castellanos 2013-04-27 15:13:56 UTC
(In reply to comment #0)
> Loading from a resource cannot fail, so hide the try/catch in an util.
> Also remove the custom vapi and setting the translation domain since
> they are not needed anymore.

This one is pushed here: https://git.gnome.org/browse/gnome-contacts/commit/?id=bcb610d1190576b1c98d241b80e910c81515ca62

About the other two I prefer Alex to review those since it's his code in the new-contact dialog. Also I would ask Allan cause I think I remember we're dropping the new-contact dialog for in-place new-contact behavior.
But again. I'll ask Alex to review the other to.

I'm marking this patch obsolete as is already pushed.
Comment 9 Erick Perez Castellanos 2013-04-27 15:14:56 UTC
Comment on attachment 242405 [details] [review]
Move loading an ui file to an util

It turned out there was a committed state.
Comment 10 Erick Perez Castellanos 2013-08-31 02:56:56 UTC
Comment on attachment 242412 [details] [review]
Use GtkMenuButton instead of a custom widget

Pushed the migration, but not using the ui file.
Comment 11 Erick Perez Castellanos 2013-08-31 03:05:17 UTC
Comment on attachment 242405 [details] [review]
Move loading an ui file to an util

As eventually we will move to in-place contact creation.
Comment 12 Erick Perez Castellanos 2013-08-31 03:08:11 UTC
Closed as fixed because I couldn't find category for both fixed and not-fixed. I'm closing it because contacts creation inside the application is in the Roadmap, so I'll get rid of this dialog eventually.