[gtkmm] Gtk::ActionBar: Inherit from Container, add new API
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::ActionBar: Inherit from Container, add new API
- Date: Tue, 25 Jul 2017 14:30:07 +0000 (UTC)
commit 70b5f5d8360a97f83cad6c95be4b99aeaa3dcce2
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue Jul 25 16:27:07 2017 +0200
Gtk::ActionBar: Inherit from Container, add new API
GtkActionBar now inherits from Container.
Add child properties and set/get/property_revealed().
gtk/src/actionbar.hg | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/gtk/src/actionbar.hg b/gtk/src/actionbar.hg
index 27c2e17..2d845e8 100644
--- a/gtk/src/actionbar.hg
+++ b/gtk/src/actionbar.hg
@@ -16,9 +16,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <gtkmm/bin.h>
+#include <gtkmm/container.h>
_DEFS(gtkmm,gtk)
-_PINCLUDE(gtkmm/private/bin_p.h)
+_PINCLUDE(gtkmm/private/container_p.h)
namespace Gtk
{
@@ -39,9 +39,9 @@ namespace Gtk
* @newin{3,12}
*/
class ActionBar
- : public Bin
+ : public Container
{
- _CLASS_GTKOBJECT(ActionBar, GtkActionBar, GTK_ACTION_BAR, Gtk::Bin, GtkBin)
+ _CLASS_GTKOBJECT(ActionBar, GtkActionBar, GTK_ACTION_BAR, Gtk::Container, GtkContainer)
public:
/** Creates a new ActionBar widget.
@@ -62,7 +62,15 @@ public:
*/
void unset_center_widget();
- // Gtk::ActionBar has no properties, signals nor vfuncs as of 3.12.
+ _WRAP_METHOD(void set_revealed(bool revealed = true), gtk_action_bar_set_revealed, newin "3,92")
+ _WRAP_METHOD(bool get_revealed() const, gtk_action_bar_get_revealed, newin "3,92")
+
+ _WRAP_PROPERTY("revealed", bool, newin "3,92")
+
+ _WRAP_CHILD_PROPERTY("pack-type", PackType, newin "3,92")
+ _WRAP_CHILD_PROPERTY("position", int, newin "3,92")
+
+ // Gtk::ActionBar has no signals nor vfuncs as of 3.90.
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]