GDS-Render v1.2.1
|
#include <stdio.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <locale.h>
#include <gds-render/gds-render-gui.h>
#include <gds-render/command-line.h>
#include <gds-render/output-renderers/external-renderer.h>
#include <gds-render/version.h>
Go to the source code of this file.
Data Structures | |
struct | application_data |
Structure containing The GtkApplication and a list containing the GdsRenderGui objects. More... | |
Functions | |
static void | app_quit (GSimpleAction *action, GVariant *parameter, gpointer user_data) |
Callback for the menu entry 'Quit'. More... | |
static void | app_about (GSimpleAction *action, GVariant *parameter, gpointer user_data) |
Callback for the 'About' menu entry. More... | |
static void | gui_window_closed_callback (GdsRenderGui *gui, gpointer user_data) |
Called when a GUI main window is closed. More... | |
static void | gapp_activate (GApplication *app, gpointer user_data) |
Activation of the GUI. More... | |
static int | start_gui (int argc, char **argv) |
Start the graphical interface. More... | |
static void | print_version (void) |
Print the application version string to stdout. More... | |
int | main (int argc, char **argv) |
The "entry point" of the application. More... | |
Variables | |
static const GActionEntry | app_actions [] |
Contains the application menu entries. More... | |
|
static |
|
static |
Callback for the menu entry 'Quit'.
Destroys all GUIs contained in the application_data structure provided by user_data
.
The complete suspension of all main windows leads to the termination of the GApplication.
action | unused |
parameter | unused |
user_data | application_data structure |
|
static |
|
static |
Called when a GUI main window is closed.
The GdsRenderGui object associated with the closed main window is removed from the list of open GUIs (user_data
) and dereferenced.
gui | The GUI instance the closed main window belongs to |
user_data | List of GUIs |
Definition at line 143 of file main.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
|
static |
|
static |
Start the graphical interface.
This function starts the GUI. If there's already a running instance of this program, a second window will be created in that instance and the second one is terminated.
argc | |
argv |
Definition at line 185 of file main.c.
|
static |