summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-03-11 22:54:32 +0000
committerjstebbins <[email protected]>2010-03-11 22:54:32 +0000
commitce0f63162da3c62291231f8be6033981a54997ef (patch)
treea1cfd9e8890436f4378fcae16026bdb0d7890991
parent0f3e3351b62bb9e275c61f9ed24a13ccc3c66f85 (diff)
LinGui: fix an issue with hud widget sytle overrides
The overrides are based on widget name, and the names are no longer being set by GtkBuilder. So I have to set them myself. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3161 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 55b3cfe63..c11ff759a 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -729,6 +729,14 @@ main (int argc, char *argv[])
//GtkWidget *widget = GHB_WIDGET(ud->builder, "PictureDetelecineCustom");
//gtk_entry_set_inner_border(widget, 2);
+ // Since GtkBuilder no longer assigns object ids to widget names
+ // Assign a few that are necessary for style overrides to work
+ GtkWidget *widget;
+ widget = GHB_WIDGET(ud->builder, "preview_hud");
+ gtk_widget_set_name(widget, "preview_hud");
+ widget = GHB_WIDGET(ud->builder, "preview_window");
+ gtk_widget_set_name(widget, "preview_window");
+
// Set up the "hud" control overlay for the preview window
GtkWidget *draw, *hud, *blender, *align;
@@ -849,7 +857,6 @@ main (int argc, char *argv[])
// Ugly hack to keep subtitle table from bouncing around as I change
// which set of controls are visible
GtkRequisition req;
- GtkWidget *widget;
gint height;
widget = GHB_WIDGET(ud->builder, "SrtCodeset");