summaryrefslogtreecommitdiffstats
path: root/gtk/src/create_resources.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-02-19 00:06:26 +0000
committerjstebbins <[email protected]>2014-02-19 00:06:26 +0000
commit79b05392677602129f4ec0119ba0782d62e4b7fe (patch)
treebaa5e016ef05927a166191882598000ed6598141 /gtk/src/create_resources.c
parentdcfe8545b8bf8a9a32be87f847959137c0a251d2 (diff)
LinGui: rework title list
Title list is now linked to a settings list. There is one settings dict per title. The settings list is populated when scan completes. As you change titles, the settings for that title populate the UI. Changes made are saved in the settings and restored if you go to another title and then return. This is preparation for improvements to "Add All to Queue" feature. Settings for each title can be customized before adding to the queue. All titles don't have to use the same preset or settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6046 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/create_resources.c')
-rw-r--r--gtk/src/create_resources.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/gtk/src/create_resources.c b/gtk/src/create_resources.c
index 61521ef4d..518cf47ae 100644
--- a/gtk/src/create_resources.c
+++ b/gtk/src/create_resources.c
@@ -76,8 +76,8 @@ find_file(GList *list, const gchar *name)
static const gchar*
lookup_attr_value(
- const gchar *name,
- const gchar **attr_names,
+ const gchar *name,
+ const gchar **attr_names,
const gchar **attr_values)
{
gint ii;
@@ -90,7 +90,7 @@ lookup_attr_value(
}
return NULL;
}
-
+
static GValue*
read_string_from_file(const gchar *filename)
{
@@ -116,15 +116,15 @@ read_string_from_file(const gchar *filename)
static void
start_element(
- GMarkupParseContext *ctx,
- const gchar *tag,
+ GMarkupParseContext *ctx,
+ const gchar *tag,
const gchar **attr_names,
const gchar **attr_values,
gpointer ud,
GError **error)
{
parse_data_t *pd = (parse_data_t*)ud;
- union
+ union
{
gint id;
gpointer pid;
@@ -196,17 +196,17 @@ start_element(
int bps = gdk_pixbuf_get_bits_per_sample(pb);
int rowstride = gdk_pixbuf_get_rowstride(pb);
- ghb_dict_insert(gval, g_strdup("colorspace"),
+ ghb_dict_insert(gval, g_strdup("colorspace"),
ghb_int_value_new(colorspace));
- ghb_dict_insert(gval, g_strdup("alpha"),
+ ghb_dict_insert(gval, g_strdup("alpha"),
ghb_boolean_value_new(alpha));
- ghb_dict_insert(gval, g_strdup("width"),
+ ghb_dict_insert(gval, g_strdup("width"),
ghb_int_value_new(width));
- ghb_dict_insert(gval, g_strdup("height"),
+ ghb_dict_insert(gval, g_strdup("height"),
ghb_int_value_new(height));
- ghb_dict_insert(gval, g_strdup("bps"),
+ ghb_dict_insert(gval, g_strdup("bps"),
ghb_int_value_new(bps));
- ghb_dict_insert(gval, g_strdup("rowstride"),
+ ghb_dict_insert(gval, g_strdup("rowstride"),
ghb_int_value_new(rowstride));
rd = g_malloc(sizeof(ghb_rawdata_t));
@@ -302,14 +302,14 @@ start_element(
static void
end_element(
- GMarkupParseContext *ctx,
- const gchar *name,
+ GMarkupParseContext *ctx,
+ const gchar *name,
gpointer ud,
GError **error)
{
parse_data_t *pd = (parse_data_t*)ud;
gint id;
- union
+ union
{
gint id;
gpointer pid;
@@ -386,8 +386,8 @@ end_element(
static void
text_data(
- GMarkupParseContext *ctx,
- const gchar *text,
+ GMarkupParseContext *ctx,
+ const gchar *text,
gsize len,
gpointer ud,
GError **error)
@@ -399,8 +399,8 @@ text_data(
static void
passthrough(
- GMarkupParseContext *ctx,
- const gchar *text,
+ GMarkupParseContext *ctx,
+ const gchar *text,
gsize len,
gpointer ud,
GError **error)
@@ -417,7 +417,7 @@ parse_error(GMarkupParseContext *ctx, GError *error, gpointer ud)
}
// This is required or the parser crashes
-static void
+static void
destroy_notify(gpointer data)
{ // Do nothing
//g_debug("destroy parser");