1. 18 Jun, 2019 1 commit
  2. 17 Jun, 2019 1 commit
    • Chun-wei Fan's avatar
      Build: Build gdkmm into gtkmm · 32768bf0
      Chun-wei Fan authored
      In the autotools builds, GDKMM is no longer built as a standalone DLL
      but is instead part of the GTKMM DLL.  Make it the case in the Visual
      Studio builds as well.  This makes things in line with what happens in
      GTK master.
      
      Also remove all traces of gdkmm.rc, since that is no longer used.
      32768bf0
  3. 16 Jun, 2019 2 commits
  4. 03 Jun, 2019 1 commit
  5. 01 Jun, 2019 2 commits
  6. 21 May, 2019 2 commits
  7. 20 May, 2019 2 commits
  8. 19 May, 2019 9 commits
    • Daniel Boles's avatar
      builder: Remove old, ugly get_widget*() overloads · 833976a0
      Daniel Boles authored
      Kjell suggested this here, so while I originally kept these and
      implemented the nicer overloads in terms of them to retain backwards
      compatibility and richer git diffs, let's instead see if we can simply
      get rid of them, to encourage the far nicer API they offer.
      
      !11 (comment 514243)
      833976a0
    • Daniel Boles's avatar
      builder: rm accidental argument name in Return doc · 918228ac
      Daniel Boles authored
      This is left over from when it was an output parameter.
      918228ac
    • Daniel Boles's avatar
      builder: Fix @newin version number · 1d768e0c
      Daniel Boles authored
      3.94 has been and gone; the current preview version is 3.95, so
      announce that this will arrive in the release of 3.96.
      1d768e0c
    • Daniel Boles's avatar
      tests/builder: Test get_object() overloads coexist · 977e49e8
      Daniel Boles authored
      This confirms that the new get_object<T>() does not conflict with the
      old get_object(), as well as making sure the latter works and gets the
      same object again without any problem.
      
      Close #43
      977e49e8
    • Daniel Boles's avatar
      Builder: Add get_object<Derived>(name) overloads · 51167b87
      Daniel Boles authored
      Allow getting and casting to a subclass of Glib::Object in one line,
      thus making it nicer to deal with non-widget objects in Builder files.
      
      The non-template and template member functions act as distinct
      overloads, meaning the new ones can be named get_object() also.
      
      Add a Gtk::Adjustment to tests/builder, and check its refcounts are OK.
      Also add a g_assert that (A) ensures that the test compiles, i.e. we got
      the right type in the RefPtr and (B) checks we get the right :value out.
      In case (B) seems frivolous, I did see it not working due to prop order!
      Adjustment:value needs set after :lower|:upper as it is clamped by them.
      
      While here, g_assert() the mm pointers/RefPtrs just to be fully paranoid
      
      #43
      51167b87
    • Daniel Boles's avatar
      tests|gtk-demo: Use new Builder.get_widget*() vers · 08c4cee0
      Daniel Boles authored
      This looks nicer and, of course, serves to test that they work properly.
      
      #43
      08c4cee0
    • Daniel Boles's avatar
      Builder: Add returning vers of get_widget|_derived · 0b4b8c6c
      Daniel Boles authored
      To avoid the cumbersome two-step process of declaring a pointer and then
      passing it to get_widget[_derived]() for use as an output argument, add
      overloads that return the pointer directly. Of course, now we have no
      arg from which to deduce the type, so pass that as a template argument.
      
      #43
      0b4b8c6c
    • Daniel Boles's avatar
      tests/builder: <packing> is removed in GTK master · 9a0f31d6
      Daniel Boles authored
      and wasn't achieving anything by explicitly being here anyway - except
      breaking the test at runtime!
      9a0f31d6
    • Daniel Boles's avatar
      button: Drop clicked(), as it's gone in GTK master · 283218da
      Daniel Boles authored
      See GTK commit bcfff5e46934cb7bb9bae0730d557a3ed0faf163:
      
      
      > This is not an api we want to propagate anymore.
      > If you need to, you can still emit the "clicked"
      > action signal on a button using g_signal_emit_by_name.
      283218da
  9. 14 May, 2019 4 commits
  10. 13 May, 2019 1 commit
  11. 12 May, 2019 2 commits
  12. 08 May, 2019 1 commit
  13. 07 May, 2019 2 commits
    • Kjell Ahlstedt's avatar
      Gdk, Gtk: Update for the latest gtk4 (Window::set_default_widget(), etc.) · 8df67aaa
      Kjell Ahlstedt authored
      * demos/gtk-demo/example_menus.cc: Use Gtk::Window::set_default_widget()
      instead of the deleted Widget::set_can_default() and grab_default().
      * gdk/src/surface.hg: Add property_frame_clock().
      * gtk/src/builder.hg: gsize length -> gssize; length can be -1.
      * gtk/src/menu.hg: Remove set_display().
      * gtk/src/popover.hg: Add property_default_widget().
      * gtk/src/widget.hg: Remove set/get/property_can_default(), grab_default(),
      signal_display_changed(). Add activate_action(), activate_default().
      * gtk/src/window.[ccg|hg]: Remove activate_focus(), activate_default().
      Add property_default_widget(). Rename set_default() to set_default_widget(),
      unset_default() to unset_default_widget().
      8df67aaa
    • Kjell Ahlstedt's avatar
      37992d10
  14. 25 Apr, 2019 2 commits
    • Kjell Ahlstedt's avatar
      Gdk, Gtk: Update for the latest gtk4 (Add CssLocation, etc.) · fd0ab1ef
      Kjell Ahlstedt authored
      * gdk/src/surface.[ccg|hg]: Remove set/get_group(), invalidate_rect(),
      invalidate(), invalidate_region(), set_skip_taskbar_hint(),
      set_skip_pager_hint(), set_urgency_hint().
      * gtk/src/csslocation.[ccg|hg]: New files.
      * gtk/src/cssprovider.hg: Replace CssProviderError by CssParserError and
      CssParserWarning. Replace get_named() by load_named().
      * gtk/src/csssection.[ccg|hg]: Remove enum CssSection::Type. Add create()
      and to_string(). Replace get_[start|ned]_[line|position]() by
      get_[start|end]_location().
      * gtk/src/enums.hg: Add PickFlags.
      * gtk/src/listbox.hg: Add set/get/property_show_separators().
      * gtk/src/menubar.hg: Remove enum PackDirection. Remove
      set/get/property_pack_direction(), set/get/property_child_pack_direction().
      * gtk/src/widget.hg: Replace set/get/property_can_pick() by
      set/get/property_can_target(). Remove pick_vfunc(), set/get_parent_surface().
      Add PickFlags argument to pick().
      * gtk/src/window.hg: Remove set/get/property_skip_taskbar_hint(),
      set/get/property_skip_pager_hint(), set/get/property_urgency_hint().
      fd0ab1ef
    • Kjell Ahlstedt's avatar
      Gdk, Gtk: Regenerate docs.xml and .defs files · c5f01b71
      Kjell Ahlstedt authored
      and update gtk_vfuncs.defs, gtk_generate_[docs|enums|methods].sh.
      Some gtk files have been moved from gtk+/gtk to gtk+/gtk/css.
      The gtk_generate_*.sh scripts shall search for info in gtk/gtk/css.
      c5f01b71
  15. 07 Apr, 2019 3 commits
  16. 02 Apr, 2019 2 commits
  17. 01 Apr, 2019 3 commits
    • Kjell Ahlstedt's avatar
      Gtk: Add LayoutManager and LayoutChild · 6946fb2d
      Kjell Ahlstedt authored
      6946fb2d
    • Kjell Ahlstedt's avatar
      Gdk, Gtk: Update for the latest gtk4 (Remove Paned::child_property_*(), etc.) · 50d2aaf9
      Kjell Ahlstedt authored
      * gdk/src/device.[ccg|hg]: Remove warp(), get_position(int& x, int& y),
      get_surface_at_position(int& x, int& y).
      Add get_surface_at_position(double& x, double& y).
      * gdk/src/surface.hg: Remove set_role(),
      get_device_position(..., int& x, int& y, ...).
      * gtk/src/actionbar.hg: Remove child property.
      * gtk/src/application.hg: Add signal_query_end().
      * gtk/src/fixed.hg: Remove child properties. Add get_child_position().
      * gtk/src/headerbar.hg:
      * gtk/src/overlay.hg: Remove child properties.
      * gtk/src/paned.hg: Remove child properties.
      Add property_resize_child1/2(), property_shrink_child1/2(),
      * gtk/src/popovermenu.hg: Remove child property. Add add_submenu().
      * gtk/src/searchentry.hg: Add property_placeholder_text(),
      property_actives_default().
      * gtk/src/stylecontext.hg: Remove obsolete _IGNORE().
      * gtk/src/toolbar.hg: Remove child properties.
      * gtk/src/toolitem.hg: Add property_expand_item(), property_homogeneous().
      * gtk/src/window.hg: Remove set/get/property_role(),
      set/get/property_gravity(), move(), get_position().
      * tools/m4/convert_gdk.m4: Remove conversions for GdkGrabOwnership.
      50d2aaf9
    • Kjell Ahlstedt's avatar
      Gdk, Gtk: Regenerate docs.xml and .defs files · 4985e045
      Kjell Ahlstedt authored
      and update gtk_docs_override.xml, gtk_vfuncs.defs and generate_defs_gtk.cc.
      4985e045