Merge branch 'master' of git.shimatta.de:mhu/gds-render

This commit is contained in:
2019-03-11 10:38:35 +01:00
21 changed files with 545 additions and 97 deletions

8
main.c
View File

@@ -32,7 +32,7 @@ struct application_data {
static void app_quit(GSimpleAction *action, GVariant *parameter, gpointer user_data)
{
struct application_data *appdata = (struct application_data *)user_data;
const struct application_data * const appdata = (const struct application_data *)user_data;
(void)action;
(void)parameter;
@@ -43,7 +43,7 @@ static void app_about(GSimpleAction *action, GVariant *parameter, gpointer user_
{
GtkBuilder *builder;
GtkDialog *dialog;
struct application_data *appdata = (struct application_data *)user_data;
const struct application_data * const appdata = (const struct application_data *)user_data;
(void)action;
(void)parameter;
@@ -64,7 +64,7 @@ const static GActionEntry app_actions[] = {
static void gapp_activate(GApplication *app, gpointer user_data)
{
GtkWindow *main_window;
struct application_data *appdata = (struct application_data *)user_data;
struct application_data * const appdata = (struct application_data *)user_data;
main_window = create_main_window();
appdata->main_window = main_window;
@@ -142,7 +142,7 @@ int main(int argc, char **argv)
{"tex-layers", 'l', 0, G_OPTION_ARG_NONE, &pdf_layers, "Create PDF Layers (OCG)", NULL },
{"custom-render-lib", 'P', 0, G_OPTION_ARG_FILENAME, &custom_library_path, "Path to a custom shared object, that implements the " EXTERNAL_LIBRARY_FUNCTION " function", "PATH"},
{"external-lib-output", 'e', 0, G_OPTION_ARG_FILENAME, &custom_library_file_name, "Output path for external render library", "PATH"},
{ NULL }
{NULL}
};
context = g_option_context_new(" FILE - Convert GDS file <FILE> to graphic");