diff options
author | jstebbins <[email protected]> | 2008-09-11 16:12:31 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-11 16:12:31 +0000 |
commit | 3542367d63f7fb4d443645e5a61ff60ae709382b (patch) | |
tree | 27d8b6b1add0421ffbadf290be7048d98e23ac15 /gtk/src/main.c | |
parent | a3a83842d26ad83b8e7a7b9dd876e8ce6af9dcb9 (diff) |
LinGui: change deblock control to a slider to set deblock strength
also clean up some resource handling. delete several depricated files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1689 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 12a121c91..43d787941 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -73,20 +73,21 @@ #define BUILDER_NAME "ghb" -const gchar ghb_ui[] = -#include "ghb.ui.h" -; - GtkBuilder* create_builder_or_die(const gchar * name) { guint res; + GValue *gval; + const gchar *ghb_ui; + const gchar *markup = N_("<b><big>Unable to create %s.</big></b>\n" "\n" "Internal error. Could not parse UI description.\n"); g_debug("create_builder_or_die ()\n"); GtkBuilder *xml = gtk_builder_new(); + gval = ghb_resource_get("ghb-ui"); + ghb_ui = g_value_get_string(gval); if (xml != NULL) res = gtk_builder_add_from_string(xml, ghb_ui, -1, NULL); if (!xml || !res) @@ -572,7 +573,7 @@ main (int argc, char *argv[]) gtk_main (); //I'd like to do this, but hb threads seem to persist for a while //so closing crashes :( - //ghb_backend_close(); + ghb_backend_close(); if (ud->queue) ghb_value_free(ud->queue); ghb_value_free(ud->settings); |