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; }
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); } } }
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; }