[go: up one dir, main page]

Menu

Git Merge Request #20: Don't use deprecated Gtk2 and fix Gtkmm bindings (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Hubert Figuiere wants to merge 3 commits from /u/hub/guitarix/ to master, 2019-08-21

Two commits:

  • Don't use deprecated Gtk2 API.
  • Some gtkmm bindings didn't generate.

I haven't checked in the regenerated bindings.

Commit Date  
2019-08-02 03:02:03 Tree
[a722ad] by Hubert Figuière Hubert Figuière

gxwmm: fix bindings syntax

2019-08-01 23:46:44 Tree
[688292] by Hubert Figuière Hubert Figuière

Don't use deprecated API

2019-07-07 03:40:19 Tree

Discussion

  • Hubert Figuiere

    Hubert Figuiere - 2019-08-02

    Added a few fix to bugs I introduced in a previous merge request in the C++ bindings.

     
  • brummer

    brummer - 2019-08-02

    Many thanks again Hubert.
    Merged now.
    It looks like you prepare the source to be ready to port to GTK-3, is that your goal?

     
  • brummer

    brummer - 2019-08-02
    • Status: open --> merged
     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-02

    Yes. But I have concerns notably with lv2.

    I'll probably submit for Gtk2 patches, like expanding gxw_demo to have more widgets: it's very useful to test the Gtk3 port.

     
  • brummer

    brummer - 2019-08-02

    That is very welcome, as I'll port the LV2 plugins to X11 /cairo anyway. Currently I'm working on a X11 /cairo based toolkit, which will replace GTK in the LV2 plugs as soon it is ready. But it would never be able to replace GTK in guitarix main.
    https://github.com/brummer10/Xputty
    So when you port guitarix to GTK3, we could make a big step at once.

     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-02

    X11? I only have Wayland here (ok XWayland for compat, but you get the idea). Also I think it should be doable to have Gtk3 for the LV2 plugin. It would just require some isolation.

    My main motivation is that Gtk2 doesn't support HiDPI which is that Guitarix UI is ridiculously small, even though it's not as bad as some other apps.

     
  • brummer

    brummer - 2019-08-02

    Yea, most LV2 plugs this day's comes with a X11 or openGL based interface. I guess a lot of time have to pass before you really could use wayland without X.

     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-02

    Since we are on the topic, woud you want Gtk3 along side Gtk2 for Guitarix? It is not the approach I have take yet, but I could change course, better do it now than later.

     
  • brummer

    brummer - 2019-08-02

    Nope, I think best would be to replace gtk2 with gtk3 completely. Even if we skip some style files for the move,

     
  • brummer

    brummer - 2019-08-21

    unfortunately it wont build here, after some warnings about

    warning: GdkPixbuf* gtk_widget_render_icon_pixbuf(GtkWidget*, const gchar*, GtkIconSize) is deprecated: Use 'gtk_icon_theme_load_icon' instead [-Wdeprecated-declarations]
     = gtk_widget_render_icon_pixbuf(widget, get_stock_id(widget), GtkIconSize(-1));
    

    I get:

    default/libgxwmm/gxwmm/paintbox.cc: In member function void Gxw::PaintBox::call_paint_func(GdkEventExpose*):
    default/libgxwmm/gxwmm/paintbox.cc:134:40: error: cannot convert GdkEventExpose* {aka ‘_GdkEventExpose*’} to cairo_t* {aka ‘_cairo*’}
       gx_paint_box_call_paint_func(gobj(), event);
                                            ^~~~~
    In file included from default/libgxwmm/gxwmm/paintbox.cc:28:
    ../libgxw/gxw/GxPaintBox.h:55:67: note:   initializing argument 2 of void gx_paint_box_call_paint_func(GxPaintBox*, cairo_t*)
     void gx_paint_box_call_paint_func(GxPaintBox *paint_box, cairo_t *cr);
    
     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-21

    oops let me fix this.

     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-21

    oh you mean the gtk3 branch?

     
  • Hubert Figuiere

    Hubert Figuiere - 2019-08-21

    You need to pass --generate-cpp-wrapper to the waf configure as I haven't yet checked the gxwmm wrappers in.

     

    Last edit: Hubert Figuiere 2019-08-21
  • brummer

    brummer - 2019-08-21

    Ah, okay.
    Yes, beside some warnings it build and run now. WOW. Great work so far.
    It's mostly the rc/css stuff witch is missing now.
    What I'm notice is that gtk3 seems to handle the animations far better then gtk2.

     

Log in to post a comment.