[gtkmm] gtkmm: Added yet more missing properties.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] gtkmm: Added yet more missing properties.
- Date: Sat, 25 Sep 2010 22:29:05 +0000 (UTC)
commit 2122556a49ff209cefe62db669fbc9f4fba95b69
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Sep 25 22:53:49 2010 +0200
gtkmm: Added yet more missing properties.
* gtk/src/menubar.hg: Added pack_direction and child_pack_direction
properties, with a new PackDirection enum.
* gtk/src/notebook.hg: Added group_id and group properties.
* gtk/src/printer.hg: Added paused and accepting_jobs properties.
* gtk/src/printjob.hg: Added track_print_status property.
* gtk/src/printoperation.hg: Added track_print_status property.
* gtk/src/progressbar.hg: Added adjustment, bar_stye, activity_step,
activity_blocks and discrete_blocks properties.
* gtk/src/ruler.hg: Added metric property.
ChangeLog | 14 ++++++++++++++
gtk/src/cellrendererprogress.hg | 7 +++++--
gtk/src/menubar.hg | 5 +++++
gtk/src/notebook.hg | 2 +-
gtk/src/printer.hg | 2 ++
gtk/src/printjob.hg | 1 +
gtk/src/printoperation.hg | 1 +
gtk/src/progressbar.hg | 1 +
gtk/src/radioaction.hg | 1 +
gtk/src/radiobutton.hg | 2 ++
gtk/src/radiomenuitem.hg | 2 ++
gtk/src/radiotoolbutton.hg | 2 ++
gtk/src/recentchoosermenu.hg | 2 ++
gtk/src/ruler.hg | 1 +
14 files changed, 40 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2d79b19..a93f916 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
2010-09-25 Murray Cumming <murrayc murrayc com>
+ gtkmm: Added yet more missing properties.
+
+ * gtk/src/menubar.hg: Added pack_direction and child_pack_direction
+ properties, with a new PackDirection enum.
+ * gtk/src/notebook.hg: Added group property.
+ * gtk/src/printer.hg: Added paused and accepting_jobs properties.
+ * gtk/src/printjob.hg: Added track_print_status property.
+ * gtk/src/printoperation.hg: Added track_print_status property.
+ * gtk/src/ruler.hg: Added metric property.
+ * gtk/src/cellrendererprogress.hg: Remove orientation property, removed
+ from GTK+. Instead derive from Orientable, as ProgressBar already does.
+
+2010-09-25 Murray Cumming <murrayc murrayc com>
+
Notebook: Fix gmmproc warnings and non-existant properties.
* gtk/src/notebook.hg: Do not try to wrap properties that were remove from
diff --git a/gtk/src/cellrendererprogress.hg b/gtk/src/cellrendererprogress.hg
index fafd3f1..32ae9a3 100644
--- a/gtk/src/cellrendererprogress.hg
+++ b/gtk/src/cellrendererprogress.hg
@@ -18,6 +18,7 @@
*/
#include <gtkmm/cellrenderer.h>
+#include <gtkmm/orientable.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(gtkmm/private/cellrenderer_p.h)
@@ -30,9 +31,12 @@ namespace Gtk
* @ingroup TreeView
* @newin{2,6}
*/
-class CellRendererProgress : public CellRenderer
+class CellRendererProgress
+ : public CellRenderer,
+ public Orientable
{
_CLASS_GTKOBJECT(CellRendererProgress, GtkCellRendererProgress, GTK_CELL_RENDERER_PROGRESS, Gtk::CellRenderer, GtkCellRenderer)
+ _IMPLEMENTS_INTERFACE(Orientable)
public:
_CTOR_DEFAULT()
@@ -41,7 +45,6 @@ public:
_WRAP_PROPERTY("pulse", int)
_WRAP_PROPERTY("text-xalign", float)
_WRAP_PROPERTY("text-yalign", float)
- _WRAP_PROPERTY("orientation", ProgressBarOrientation)
virtual Glib::PropertyProxy_Base _property_renderable();
};
diff --git a/gtk/src/menubar.hg b/gtk/src/menubar.hg
index 438046c..4aa7012 100644
--- a/gtk/src/menubar.hg
+++ b/gtk/src/menubar.hg
@@ -29,6 +29,8 @@ _PINCLUDE(gtkmm/private/menushell_p.h)
namespace Gtk
{
+_WRAP_ENUM(PackDirection, GtkPackDirection)
+
/** A standard menu bar which usually holds Gtk::Menu submenu items.
* The useful methods are in the base class - Gtk::MenuShell.
*
@@ -46,6 +48,9 @@ public:
MenuBar();
// append, prepend and insert are defined in menushell
+
+ _WRAP_PROPERTY("pack-direction", PackDirection)
+ _WRAP_PROPERTY("child-pack-direction", PackDirection)
private:
void init_accels_handler_(void);
diff --git a/gtk/src/notebook.hg b/gtk/src/notebook.hg
index 7779028..11acac8 100644
--- a/gtk/src/notebook.hg
+++ b/gtk/src/notebook.hg
@@ -171,7 +171,7 @@ public:
_WRAP_PROPERTY("show-border", bool)
_WRAP_PROPERTY("scrollable", bool)
_WRAP_PROPERTY("page", int)
- _WRAP_PROPERTY("enable-popup", bool)
+ _WRAP_PROPERTY("group", void*) //TODO: What is this?
//TODO: Wrap the child properties, such as tab-fill and tab-expand.
};
diff --git a/gtk/src/printer.hg b/gtk/src/printer.hg
index 18a85d7..b09a7a6 100644
--- a/gtk/src/printer.hg
+++ b/gtk/src/printer.hg
@@ -100,6 +100,8 @@ public:
_WRAP_PROPERTY("job_count", int)
_WRAP_PROPERTY("accepts-pdf", bool)
_WRAP_PROPERTY("accepts-ps", bool)
+ _WRAP_PROPERTY("paused", bool)
+ _WRAP_PROPERTY("accepting-jobs", bool)
};
/** @relates Gtk::Printer */
diff --git a/gtk/src/printjob.hg b/gtk/src/printjob.hg
index a550e9e..016fe70 100644
--- a/gtk/src/printjob.hg
+++ b/gtk/src/printjob.hg
@@ -89,6 +89,7 @@ public:
_WRAP_PROPERTY("printer", Glib::RefPtr<Printer>)
_WRAP_PROPERTY("settings", Glib::RefPtr<PrintSettings>)
_WRAP_PROPERTY("page_setup", Glib::RefPtr<PageSetup>)
+ _WRAP_PROPERTY("track-print-status", bool)
};
} // namespace Gtk
diff --git a/gtk/src/printoperation.hg b/gtk/src/printoperation.hg
index f8fa3d6..648a708 100644
--- a/gtk/src/printoperation.hg
+++ b/gtk/src/printoperation.hg
@@ -157,6 +157,7 @@ public:
_WRAP_PROPERTY("n_pages", int)
_WRAP_PROPERTY("current_page", int)
_WRAP_PROPERTY("use_full_page", bool)
+ _WRAP_PROPERTY("track-print-status", bool)
_WRAP_PROPERTY("unit", Unit)
_WRAP_PROPERTY("show_progress", bool)
_WRAP_PROPERTY("allow_async", bool)
diff --git a/gtk/src/progressbar.hg b/gtk/src/progressbar.hg
index 8cee651..36da219 100644
--- a/gtk/src/progressbar.hg
+++ b/gtk/src/progressbar.hg
@@ -95,6 +95,7 @@ public:
_WRAP_PROPERTY("fraction", double)
_WRAP_PROPERTY("pulse-step", double)
+ _WRAP_PROPERTY("orientation", ProgressBarOrientation)
_WRAP_PROPERTY("text", Glib::ustring)
_WRAP_PROPERTY("ellipsize", bool)
};
diff --git a/gtk/src/radioaction.hg b/gtk/src/radioaction.hg
index 7bc319c..ed3d136 100644
--- a/gtk/src/radioaction.hg
+++ b/gtk/src/radioaction.hg
@@ -134,6 +134,7 @@ public:
_WRAP_SIGNAL(void changed(const Glib::RefPtr<RadioAction>& current), changed)
_WRAP_PROPERTY("value", int)
+ //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
_WRAP_PROPERTY("current-value", int)
};
diff --git a/gtk/src/radiobutton.hg b/gtk/src/radiobutton.hg
index 0217ee2..ca64a94 100644
--- a/gtk/src/radiobutton.hg
+++ b/gtk/src/radiobutton.hg
@@ -84,6 +84,8 @@ public:
_IGNORE(gtk_radio_button_set_group)
_WRAP_SIGNAL(void group_changed(), "group_changed")
+
+ //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
};
} /* namespace Gtk */
diff --git a/gtk/src/radiomenuitem.hg b/gtk/src/radiomenuitem.hg
index ad963e3..0a3a1ce 100644
--- a/gtk/src/radiomenuitem.hg
+++ b/gtk/src/radiomenuitem.hg
@@ -63,6 +63,8 @@ public:
*/
_WRAP_SIGNAL(void group_changed(), "group_changed")
+ //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
+
protected:
void constructor(const Group& group);
};
diff --git a/gtk/src/radiotoolbutton.hg b/gtk/src/radiotoolbutton.hg
index 6fd4893..9a4a7ca 100644
--- a/gtk/src/radiotoolbutton.hg
+++ b/gtk/src/radiotoolbutton.hg
@@ -101,6 +101,8 @@ public:
_WRAP_METHOD(Group get_group(), gtk_radio_tool_button_get_group)
_WRAP_METHOD(void set_group(Group& group), gtk_radio_tool_button_set_group)
+
+ //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
};
} // namespace Gtk
diff --git a/gtk/src/recentchoosermenu.hg b/gtk/src/recentchoosermenu.hg
index cfe09b5..aab2fcd 100644
--- a/gtk/src/recentchoosermenu.hg
+++ b/gtk/src/recentchoosermenu.hg
@@ -53,6 +53,8 @@ public:
_WRAP_METHOD(void set_show_numbers(bool show_numbers = true), gtk_recent_chooser_menu_set_show_numbers)
_WRAP_METHOD(bool get_show_numbers() const, gtk_recent_chooser_menu_get_show_numbers)
+
+ _WRAP_PROPERTY("show-numbers", bool)
};
} // namespace Gtk
diff --git a/gtk/src/ruler.hg b/gtk/src/ruler.hg
index 93d5dfc..3361d2a 100644
--- a/gtk/src/ruler.hg
+++ b/gtk/src/ruler.hg
@@ -82,6 +82,7 @@ public:
_WRAP_PROPERTY("upper", double)
_WRAP_PROPERTY("position", double)
_WRAP_PROPERTY("max-size", double)
+ _WRAP_PROPERTY("metric", MetricType)
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]