diff options
author | jstebbins <[email protected]> | 2014-02-19 00:06:26 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-19 00:06:26 +0000 |
commit | 79b05392677602129f4ec0119ba0782d62e4b7fe (patch) | |
tree | baa5e016ef05927a166191882598000ed6598141 /gtk/src/appcast.c | |
parent | dcfe8545b8bf8a9a32be87f847959137c0a251d2 (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/appcast.c')
-rw-r--r-- | gtk/src/appcast.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk/src/appcast.c b/gtk/src/appcast.c index b89530d71..d3a9acf03 100644 --- a/gtk/src/appcast.c +++ b/gtk/src/appcast.c @@ -2,9 +2,9 @@ /* * appcast.c * Copyright (C) John Stebbins 2008-2013 <stebbins@stebbins> - * + * * appcast.c is free software. - * + * * You may redistribute it and/or modify it under the terms of the * GNU General Public License, as published by the Free Software * Foundation; either version 2 of the License, or (at your option) @@ -55,8 +55,8 @@ typedef struct 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; @@ -69,18 +69,18 @@ lookup_attr_value( } return NULL; } - + 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; @@ -124,14 +124,14 @@ start_element( static void end_element( - GMarkupParseContext *ctx, - const gchar *tag, + GMarkupParseContext *ctx, + const gchar *tag, gpointer ud, GError **error) { parse_data_t *pd = (parse_data_t*)ud; gint id; - union + union { gint id; gpointer pid; @@ -169,14 +169,14 @@ end_element( static void text_data( - GMarkupParseContext *ctx, - const gchar *text, + GMarkupParseContext *ctx, + const gchar *text, gsize len, gpointer ud, GError **error) { parse_data_t *pd = (parse_data_t*)ud; - union + union { gint id; gpointer pid; @@ -202,8 +202,8 @@ text_data( static void passthrough( - GMarkupParseContext *ctx, - const gchar *text, + GMarkupParseContext *ctx, + const gchar *text, gsize len, gpointer ud, GError **error) @@ -220,7 +220,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"); |