diff --git a/moo/moopython/pygtk/mooutils-pygtk.defs b/moo/moopython/pygtk/mooutils-pygtk.defs index c8094890..7bf90702 100644 --- a/moo/moopython/pygtk/mooutils-pygtk.defs +++ b/moo/moopython/pygtk/mooutils-pygtk.defs @@ -1698,6 +1698,15 @@ (return-type "GtkWidget*") ) +(define-method get_paned + (of-object "MooBigPaned") + (c-name "moo_big_paned_get_paned") + (return-type "MooPaned*") + (parameters + '("MooPanePosition" "position") + ) +) + (define-method insert_pane (of-object "MooBigPaned") (c-name "moo_big_paned_insert_pane") diff --git a/moo/mooutils/moobigpaned.c b/moo/mooutils/moobigpaned.c index 5437bc04..2e948c11 100644 --- a/moo/mooutils/moobigpaned.c +++ b/moo/mooutils/moobigpaned.c @@ -565,6 +565,16 @@ moo_big_paned_get_button (MooBigPaned *paned, } +MooPaned * +moo_big_paned_get_paned (MooBigPaned *paned, + MooPanePosition position) +{ + g_return_val_if_fail (MOO_IS_BIG_PANED (paned), NULL); + g_return_val_if_fail (position < 4, NULL); + return MOO_PANED (paned->paned[position]); +} + + gboolean moo_big_paned_find_pane (MooBigPaned *paned, GtkWidget *widget, diff --git a/moo/mooutils/moobigpaned.h b/moo/mooutils/moobigpaned.h index 1dbc385a..f6f7ad31 100644 --- a/moo/mooutils/moobigpaned.h +++ b/moo/mooutils/moobigpaned.h @@ -102,6 +102,9 @@ GtkWidget *moo_big_paned_get_pane (MooBigPaned *paned, GtkWidget *moo_big_paned_get_button (MooBigPaned *paned, GtkWidget *pane_widget); +MooPaned *moo_big_paned_get_paned (MooBigPaned *paned, + MooPanePosition position); + void moo_big_paned_open_pane (MooBigPaned *paned, GtkWidget *pane_widget); void moo_big_paned_hide_pane (MooBigPaned *paned,