Beispiel #1
0
/**
 * @brief Run upon application quit.
 * @param object The GtkObject we'll need to dismember.
 * @param user_data Data passed in; this function expects none
 */
void terminate_broke (GtkObject *widget, gpointer user_data)
{
    BrokeUIMain *main_window;

    main_window = BROKE_UI_MAIN;
    gtk_widget_hide (GTK_WIDGET (main_window->window));

    broke_connection_close ();
    gtk_main_quit ();

    return;
}
Beispiel #2
0
/**
 * @brief Called when a user clicks "Disconnect" in the main window.
 * @param object A GtkObject
 * @param user_data Data passed in
 */
void main_ui_disconnect (GtkObject *object, gpointer user_data)
{
	BrokeUIMain   *main_window;
	GtkNotebook   *notebook;

	main_window = BROKE_UI_MAIN;
	notebook = main_window->notebook;
	broke_connection_close ();
	
	gtk_notebook_set_current_page (notebook, MAIN_PAGE_CONNECTION);

	return;
}