OSDN Git Service

LinGui: fix an issue with hud widget sytle overrides
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 11 Mar 2010 22:54:32 +0000 (22:54 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 11 Mar 2010 22:54:32 +0000 (22:54 +0000)
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://localhost/HandBrake/trunk@3161 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/main.c

index 55b3cfe..c11ff75 100644 (file)
@@ -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");