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/settings.h | |
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/settings.h')
-rw-r--r-- | gtk/src/settings.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/src/settings.h b/gtk/src/settings.h index 6e3ee55ff..9d28da729 100644 --- a/gtk/src/settings.h +++ b/gtk/src/settings.h @@ -3,12 +3,12 @@ * 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) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA @@ -58,7 +58,10 @@ typedef struct gboolean scale_busy; gint cancel_encode; GtkBuilder *builder; + GValue *globals; + GValue *prefs; GValue *settings; + GValue *settings_array; GValue *queue; GValue *current_job; GIOChannel *activity_log; @@ -116,7 +119,10 @@ void ghb_widget_to_setting(GValue *settings, GtkWidget *widget); int ghb_ui_update( signal_user_data_t *ud, const gchar *name, const GValue *value); int ghb_ui_update_from_settings( - GtkBuilder *builder, const gchar *name, const GValue *settings); + signal_user_data_t *ud, const gchar *name, const GValue *settings); +int ghb_ui_settings_update( + signal_user_data_t *ud, GValue *settings, const gchar *name, + const GValue *value); const gchar* ghb_get_setting_key(GtkWidget *widget); void ghb_update_widget(GtkWidget *widget, const GValue *value); |