[gtkmm] ActionBar: wrap new GtkActionBar
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] ActionBar: wrap new GtkActionBar
- Date: Sun, 23 Feb 2014 10:59:02 +0000 (UTC)
commit f1f1bc07fe1467068e0e1993fa915ae6bb9e14bc
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sun Feb 23 11:08:12 2014 +0100
ActionBar: wrap new GtkActionBar
* GtkActionBar now inherits from GtkBin
* ::spacing and ::center-widget properties removed
* Add unset_center_widget() method to allow NULL
parameter to gtk_action_bar_set_center_widget()
gtk/src/actionbar.ccg | 6 ++++++
gtk/src/actionbar.hg | 35 +++++++++++++++++++++--------------
2 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/gtk/src/actionbar.ccg b/gtk/src/actionbar.ccg
index 0b15ffe..174ce78 100644
--- a/gtk/src/actionbar.ccg
+++ b/gtk/src/actionbar.ccg
@@ -21,5 +21,11 @@
namespace Gtk
{
+
+void ActionBar::unset_center_widget()
+{
+ gtk_action_bar_set_center_widget(gobj(), NULL);
+}
+
} // namespace Gtk
diff --git a/gtk/src/actionbar.hg b/gtk/src/actionbar.hg
index 04ce8d7..27c2e17 100644
--- a/gtk/src/actionbar.hg
+++ b/gtk/src/actionbar.hg
@@ -16,28 +16,32 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <gtkmm/container.h>
+#include <gtkmm/bin.h>
_DEFS(gtkmm,gtk)
-_PINCLUDE(gtkmm/private/container_p.h)
+_PINCLUDE(gtkmm/private/bin_p.h)
namespace Gtk
{
-/** A box with a centered child.
+/** A full width bar for presenting contextual actions.
*
- * Gtk::ActionBar is similar to a horizontal Gtk::Box, it allows to place
- * children at the start or the end. In addition, it contains an
- * internal centered box which is centered with respect to the full
- * width of the box, even if the children at either side take up
- * different amounts of space.
+ * ActionBar is designed to present contextual actions. It is
+ * expected to be displayed below the content and expand horizontally
+ * to fill the area.
*
- * @ingroup Containers
+ * It allows placing children at the start or the end. In addition, it
+ * contains an internal centered box which is centered with respect to
+ * the full width of the box, even if the children at either side take
+ * up different amounts of space.
+ *
+ * @see Box
+ * @ingroup Widgets
* @newin{3,12}
*/
class ActionBar
- : public Container
+ : public Bin
{
- _CLASS_GTKOBJECT(ActionBar, GtkActionBar, GTK_ACTION_BAR, Gtk::Container, GtkContainer)
+ _CLASS_GTKOBJECT(ActionBar, GtkActionBar, GTK_ACTION_BAR, Gtk::Bin, GtkBin)
public:
/** Creates a new ActionBar widget.
@@ -52,10 +56,13 @@ public:
_WRAP_METHOD(const Widget* get_center_widget() const, gtk_action_bar_get_center_widget, constversion)
_WRAP_METHOD(void set_center_widget(Widget& center_widget), gtk_action_bar_set_center_widget)
- _WRAP_PROPERTY("spacing", int)
- _WRAP_PROPERTY("center-widget", Widget*)
+ /** Unset the center widget.
+ *
+ * See set_center_widget().
+ */
+ void unset_center_widget();
- // Gtk::ActionBar has no signals nor vfuncs as of 3.12.
+ // Gtk::ActionBar has no properties, signals nor vfuncs as of 3.12.
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]