summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-02-22 03:01:15 +0000
committerjstebbins <[email protected]>2014-02-22 03:01:15 +0000
commitab50e34327aea45ed0a1b258d07bd269dcc39a9e (patch)
treea848a75d05e42a0ea5ca493d286e22f8f936ed7b /gtk/src/callbacks.c
parente334a91396d51f1c22648f27c32492101a3053b5 (diff)
LinGui: add dialog to select multiple titles to add to queue
Replaces "Add All to Queue". Dialog provides checkboxes to select titles to add to the queue and file chooser/file entry to change destination file names. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6056 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c30
1 files changed, 12 insertions, 18 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index d22254339..e288db2d8 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1866,22 +1866,6 @@ load_all_titles(signal_user_data_t *ud, int titleindex)
ud->settings = ghb_array_get_nth(ud->settings_array, titleindex);
}
-void
-ghb_add_all_titles(signal_user_data_t *ud)
-{
- gint ii;
- gint count;
-
- count = ghb_array_len(ud->settings_array);
- for (ii = 0; ii < count; ii++)
- {
- GValue *settings;
-
- settings = ghb_value_dup(ghb_array_get_nth(ud->settings_array, ii));
- ghb_queue_add(ud, settings, ii);
- }
-}
-
static gboolean update_preview = FALSE;
G_MODULE_EXPORT void
@@ -2908,8 +2892,8 @@ ghb_backend_events(signal_user_data_t *ud)
GtkTreeView *treeview;
GtkTreeStore *store;
GtkTreeIter iter;
- static gint prev_scan_state = 0;
- static gint prev_queue_state = 0;
+ static gint prev_scan_state = -1;
+ static gint prev_queue_state = -1;
ghb_track_status();
ghb_get_status(&status);
@@ -5282,3 +5266,13 @@ window_configure_cb(
return FALSE;
}
+static void container_empty_cb(GtkWidget *widget, gpointer data)
+{
+ gtk_widget_destroy(widget);
+}
+
+void ghb_container_empty(GtkContainer *c)
+{
+ gtk_container_foreach(c, container_empty_cb, NULL);
+}
+