예제 #1
0
파일: tbo-tool-text.c 프로젝트: GNOME/tbo
static void
on_unselect (TboToolBase *tool)
{
    /* TODO remove widgets from toolarea to not destroy it */
    tbo_empty_tool_area (tool->tbo);
    tbo_window_set_key_binder (tool->tbo, TRUE);
}
예제 #2
0
파일: tbo-tool-text.c 프로젝트: GNOME/tbo
/* tool signal */
static void
on_select (TboToolBase *tool)
{
    GtkWidget *toolarea = setup_toolarea (TBO_TOOL_TEXT (tool));
    gtk_widget_show_all (GTK_WIDGET (toolarea));
    tbo_empty_tool_area (tool->tbo);
    gtk_container_add (GTK_CONTAINER (tool->tbo->toolarea), toolarea);
}
void
doodle_tool_on_select (TboWindow *tbo)
{
    GtkWidget *tree;

    tree = doodle_setup_tree (tbo);
    gtk_widget_show_all (tree);

    tbo_empty_tool_area (tbo);
    gtk_container_add (GTK_CONTAINER (tbo->toolarea), tree);
}
void
doodle_tool_on_unselect (TboWindow *tbo)
{
    tbo_empty_tool_area (tbo);
    doodle_free_all ();
}