diff options
author | jstebbins <[email protected]> | 2008-09-25 16:26:49 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-25 16:26:49 +0000 |
commit | cb8f50891e804f3768fa3475fb77de961a441498 (patch) | |
tree | b1416daf961caa19fd643bfc4cfd4978cc19717b /gtk/src/main.c | |
parent | 0a66557bbd0c429e27463d8bb3fe1918e44b344b (diff) |
LinGui: Work around a silly treeview formatting bug.
If the window hasn't been shown yet, the width request doesn't fully do
it's job and cell formatting gets munged.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1762 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index c03c15032..94e538672 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -281,6 +281,13 @@ bind_queue_tree_model (signal_user_data_t *ud) textcell); g_signal_connect(treeview, "drag_data_received", queue_drag_cb, ud); g_signal_connect(treeview, "drag_motion", queue_drag_motion_cb, ud); + + // Work around silly treeview display bug. If the treeview + // hasn't been shown yet, the width request doesn't seem + // to work right. Cells get badly formatted. + GtkWidget *widget = GHB_WIDGET (ud->builder, "queue_window"); + gtk_widget_show (widget); + gtk_widget_hide (widget); } extern void audio_list_selection_changed_cb(void); |