diff options
author | jstebbins <[email protected]> | 2009-11-23 04:18:10 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-11-23 04:18:10 +0000 |
commit | 355d48a848b5a8ad687d14ad841121e200fc3fb9 (patch) | |
tree | 7f429790fee630be09a3ae521484e4a09081b5c1 /gtk/src/preview.c | |
parent | e3c924c647f1fd26e799b9f6040d25145ead07fd (diff) |
LinGui: adjust some widget sizes to prevent window resizing at random times
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2958 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r-- | gtk/src/preview.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 7d8b690fd..e85130e90 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -142,6 +142,8 @@ ghb_par_scale(signal_user_data_t *ud, gint *width, gint *height, gint par_n, gin void ghb_preview_init(signal_user_data_t *ud) { + GtkWidget *widget; + ud->preview = g_malloc0(sizeof(preview_t)); ud->preview->view = GHB_WIDGET(ud->builder, "preview_image"); gtk_widget_realize(ud->preview->view); @@ -151,7 +153,9 @@ ghb_preview_init(signal_user_data_t *ud) ud->preview->pause = TRUE; ud->preview->encode_frame = -1; ud->preview->live_id = -1; - + widget = GHB_WIDGET (ud->builder, "preview_button_image"); + gtk_widget_get_size_request(widget, &ud->preview->button_width, &ud->preview->button_height); + #if defined(_ENABLE_GST) GstBus *bus; GstElement *xover; |