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 667436 - vapi/upstream: update gdk, remove gtk bindings
vapi/upstream: update gdk, remove gtk bindings
Status: RESOLVED OBSOLETE
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-01-06 19:29 UTC by Marc-Andre Lureau
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vapi/upstream: update gdk, remove gtk bindings (401.95 KB, patch)
2012-01-06 19:29 UTC, Marc-Andre Lureau
reviewed Details | Review

Description Marc-Andre Lureau 2012-01-06 19:29:03 UTC
We need newer gtk bindings from vala master, should we copy it?
Comment 1 Marc-Andre Lureau 2012-01-06 19:29:11 UTC
Created attachment 204776 [details] [review]
vapi/upstream: update gdk, remove gtk bindings
Comment 2 Zeeshan Ali 2012-01-06 19:37:22 UTC
Review of attachment 204776 [details] [review]:

1. I'll most probably need the gtk from git master for props so don't remove that just yet.
2. That mini-graph changes going under the title 'update gdk, remove gtk bindings' seems very wrong to me but since I'm sure we disagree strongly on that, I'd just suggest you point out that change in the commit log.
3. No objection to including gdk bindings.
Comment 3 Marc-Andre Lureau 2012-01-06 20:05:38 UTC
(In reply to comment #2)
> Review of attachment 204776 [details] [review]:
> 
> 1. I'll most probably need the gtk from git master for props so don't remove
> that just yet.

for props?

> 2. That mini-graph changes going under the title 'update gdk, remove gtk
> bindings' seems very wrong to me but since I'm sure we disagree strongly on
> that, I'd just suggest you point out that change in the commit log.

it's related, since some of the api is now deprecated. In fact that's the only justification for updating the binding here.
Comment 4 Zeeshan Ali 2012-01-06 20:15:13 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Review of attachment 204776 [details] [review] [details]:
> > 
> > 1. I'll most probably need the gtk from git master for props so don't remove
> > that just yet.
> 
> for props?

  Sorry, this I meant: https://github.com/gnome-design-team/gnome-mockups/raw/master/boxes/boxes-install5.5.png

> > 2. That mini-graph changes going under the title 'update gdk, remove gtk
> > bindings' seems very wrong to me but since I'm sure we disagree strongly on
> > that, I'd just suggest you point out that change in the commit log.
> 
> it's related, since some of the api is now deprecated. In fact that's the only
> justification for updating the binding here.

As I said, just mention that change in the log and we are good. :)
Comment 5 Marc-Andre Lureau 2012-01-06 20:23:01 UTC
(In reply to comment #4)
> As I said, just mention that change in the log and we are good. :)

my bad, I thought I did when I --fixup. ok, will commit with update message.
Comment 6 Zeeshan Ali 2012-01-06 22:19:18 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Review of attachment 204776 [details] [review] [details] [details]:
> > > 
> > > 1. I'll most probably need the gtk from git master for props so don't remove
> > > that just yet.
> > 
> > for props?
> 
>   Sorry, this I meant:
> https://github.com/gnome-design-team/gnome-mockups/raw/master/boxes/boxes-install5.5.png

Oh and the other of your latest changes require new gtk+ bindings too: https://bugzilla.gnome.org/review?bug=667435&attachment=204774.

app.vala:13.12-13.32: error: The type name `Gtk.ApplicationWindow' could not be found
    public Gtk.ApplicationWindow window;
Comment 7 Christophe Fergeau 2012-01-09 14:00:17 UTC
Commit 7e70184d38a removed vapi/upstream/glib-2.0.vapi. This breaks compilation:

make[2] : on entre dans le répertoire « /home/teuf/jhbuild-boxes/sources/gnome-boxes/src »
  VALAC  gnome_boxes_vala.stamp
wizard.vala:279.26-279.36: error: The name `format_size' does not exist in the context of `Boxes.Wizard.review'
            var memory = format_size (resources.ram, FormatSizeFlags.IEC_UNITS);
                         ^^^^^^^^^^^
wizard.vala:279.17-279.79: error: var declaration not allowed with non-typed initializer
            var memory = format_size (resources.ram, FormatSizeFlags.IEC_UNITS);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
wizard.vala:289.48-289.53: error: The name `memory' does not exist in the context of `Boxes.Wizard.review'
            summary.add_property (_("Memory"), memory);
                                               ^^^^^^
wizard.vala:290.13-290.18: error: The name `memory' does not exist in the context of `Boxes.Wizard.review'
            memory = format_size (resources.storage, FormatSizeFlags.IEC_UNITS);
            ^^^^^^
wizard.vala:291.70-291.75: error: The name `memory' does not exist in the context of `Boxes.Wizard.review'
            summary.add_property (_("Disk"),  _("%s maximum".printf (memory)));
                                                                     ^^^^^^
Compilation failed: 5 error(s), 0 warning(s)


 git checkout 7e70184d38a785840aecc858c705994f866766df^ vapi/upstream/glib-2.0.vapi && make is successful
Comment 8 Zeeshan Ali 2012-01-09 14:50:46 UTC
(In reply to comment #7)
> Commit 7e70184d38a removed vapi/upstream/glib-2.0.vapi. This breaks
> compilation:
> 
> make[2] : on entre dans le répertoire «
> /home/teuf/jhbuild-boxes/sources/gnome-boxes/src »
>   VALAC  gnome_boxes_vala.stamp
> wizard.vala:279.26-279.36: error: The name `format_size' does not exist in the
> context of `Boxes.Wizard.review'
>             var memory = format_size (resources.ram,
> FormatSizeFlags.IEC_UNITS);
>                        ^^^^^^^^^^^

Yikes, I missed the fact that Marc-Andre was silently (gtk+/gdk vapi changes mentioned in the commit summary but glib) removing glib vapi. :( This is why I don't like separate changes into the same commit/patch as its hard to then summarize all changes in the commit log and easy to miss important changes.
Comment 9 Marc-Andre Lureau 2012-01-09 14:59:38 UTC
isn't FormatSizeFlags.IEC_UNITS in the last vala release? Can't we bump on vala 0.15 depedency instead?
Comment 10 Zeeshan Ali 2012-01-09 15:10:27 UTC
(In reply to comment #9)
> isn't FormatSizeFlags.IEC_UNITS in the last vala release? Can't we bump on vala
> 0.15 depedency instead?

It is and I'm always good with bumping dep when it comes to projects following GNOME release cycle.
Comment 11 Zeeshan Ali 2012-01-09 15:12:25 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > isn't FormatSizeFlags.IEC_UNITS in the last vala release? Can't we bump on vala
> > 0.15 depedency instead?
> 
> It is and I'm always good with bumping dep when it comes to projects following
> GNOME release cycle.

Then again, I intend to add new API to glib this week (and therefore vapi update to vala git) and unless I fail, I'll be re-adding the glib vapi for the same reasons it was added originally.