예제 #1
0
static gboolean
on_notebook_tab_double_click(GtkWidget *widget, GdkEventButton *event,
                             AnjutaDocman* docman)
{
	if (event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
	{
		if(!docman->maximized)
			anjuta_shell_maximize_widget(docman->shell, "AnjutaDocumentManager", NULL);
		else
			anjuta_shell_unmaximize(docman->shell, NULL);
		docman->maximized = docman->maximized ? FALSE:TRUE;
	}

  return FALSE;
}
예제 #2
0
파일: plugin.c 프로젝트: VujinovM/anjuta
static void
on_session_load (AnjutaShell *shell,
				 AnjutaSessionPhase phase,
				 AnjutaSession *session,
				 StarterPlugin *plugin)
{
	if (phase == ANJUTA_SESSION_PHASE_END)
	{
		if (!plugin->priv->starter)
			on_value_removed (ANJUTA_PLUGIN (plugin), NULL, plugin);
		if (plugin->priv->starter)
		{
			anjuta_shell_maximize_widget (shell,
										  "AnjutaStarter",
										  NULL);
		}
	}
}
예제 #3
0
static void
on_snippets_browser_maximize_request (SnippetsBrowser *snippets_browser,
                                      gpointer user_data)
{
    SnippetsManagerPlugin *snippets_manager_plugin = NULL;

    /* Assertions */
    g_return_if_fail (ANJUTA_IS_PLUGIN_SNIPPETS_MANAGER (user_data));
    snippets_manager_plugin = ANJUTA_PLUGIN_SNIPPETS_MANAGER (user_data);

    if (snippets_manager_plugin->browser_maximized)
        return;

    anjuta_shell_maximize_widget (ANJUTA_PLUGIN (snippets_manager_plugin)->shell,
                                  "snippets_browser", NULL);
    snippets_browser_show_editor (snippets_browser);

    snippets_manager_plugin->browser_maximized = TRUE;
}