Added moo_big_paned_(de|at)tach_pane

master
Yevgen Muntyan 2007-04-17 12:50:01 -05:00
parent fd560c2582
commit 61528f54c5
5 changed files with 50 additions and 35 deletions

View File

@ -34,7 +34,7 @@
</configure>
</optimized>
</configurations>
<file_selector_dir>/home/muntyan/projects/moo/moo/mooedit/language-specs/</file_selector_dir>
<file_selector_dir>/home/muntyan/projects/moo/</file_selector_dir>
<run>
<args>--g-fatal-warnings --new-app --mode=project</args>
<exe>medit/medit</exe>

View File

@ -29,7 +29,10 @@ mooplugin.o: mooedit-pygtk.o
echo stamp > mooplugin.o
mooeditor.o: mooedit-pygtk.o
echo stamp > mooeditor.o
CLEANFILES += moocommand.o mooplugin.o mooeditor.o
moopaned.o: mooutils-pygtk.o
echo stamp > moopaned.o
CLEANFILES += moocommand.o mooplugin.o mooeditor.o moopaned.o \
moocommand.lo mooplugin.lo mooeditor.lo moopaned.lo
mooutils_defs_files = \
moofileview.defs \

View File

@ -142,6 +142,24 @@
)
)
(define-method attach_pane
(of-object "MooBigPaned")
(c-name "moo_big_paned_attach_pane")
(return-type "none")
(parameters
'("GtkWidget*" "pane_widget")
)
)
(define-method detach_pane
(of-object "MooBigPaned")
(c-name "moo_big_paned_detach_pane")
(return-type "none")
(parameters
'("GtkWidget*" "pane_widget")
)
)
(define-method get_pane_params
(of-object "MooBigPaned")
(c-name "moo_big_paned_get_pane_params")

View File

@ -516,26 +516,33 @@ moo_big_paned_remove_pane (MooBigPaned *paned,
}
void
moo_big_paned_open_pane (MooBigPaned *paned,
GtkWidget *widget)
{
int idx;
MooPaned *child = NULL;
g_return_if_fail (MOO_IS_BIG_PANED (paned));
g_return_if_fail (GTK_IS_WIDGET (widget));
moo_big_paned_find_pane (paned, widget, &child, &idx);
g_return_if_fail (child != NULL);
moo_paned_open_pane (child, idx);
#define PROXY_FUNC(name) \
void \
moo_big_paned_##name (MooBigPaned *paned, \
GtkWidget *widget) \
{ \
int idx; \
MooPaned *child = NULL; \
\
g_return_if_fail (MOO_IS_BIG_PANED (paned)); \
g_return_if_fail (GTK_IS_WIDGET (widget)); \
\
moo_big_paned_find_pane (paned, widget, &child, &idx); \
g_return_if_fail (child != NULL); \
\
moo_paned_##name (child, idx); \
}
PROXY_FUNC (open_pane)
PROXY_FUNC (present_pane)
PROXY_FUNC (attach_pane)
PROXY_FUNC (detach_pane)
#undef PROXY_FUNC
void
moo_big_paned_hide_pane (MooBigPaned *paned,
GtkWidget *widget)
moo_big_paned_hide_pane (MooBigPaned *paned,
GtkWidget *widget)
{
MooPaned *child = NULL;
@ -549,23 +556,6 @@ moo_big_paned_hide_pane (MooBigPaned *paned,
}
void
moo_big_paned_present_pane (MooBigPaned *paned,
GtkWidget *widget)
{
int idx;
MooPaned *child = NULL;
g_return_if_fail (MOO_IS_BIG_PANED (paned));
g_return_if_fail (GTK_IS_WIDGET (widget));
moo_big_paned_find_pane (paned, widget, &child, &idx);
g_return_if_fail (child != NULL);
moo_paned_present_pane (child, idx);
}
GtkWidget*
moo_big_paned_get_button (MooBigPaned *paned,
GtkWidget *widget)

View File

@ -111,6 +111,10 @@ void moo_big_paned_hide_pane (MooBigPaned *paned,
GtkWidget *pane_widget);
void moo_big_paned_present_pane (MooBigPaned *paned,
GtkWidget *pane_widget);
void moo_big_paned_attach_pane (MooBigPaned *paned,
GtkWidget *pane_widget);
void moo_big_paned_detach_pane (MooBigPaned *paned,
GtkWidget *pane_widget);
MooPaneParams *moo_big_paned_get_pane_params (MooBigPaned *paned,
MooPanePosition position,