From 355d48a848b5a8ad687d14ad841121e200fc3fb9 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 23 Nov 2009 04:18:10 +0000 Subject: 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 --- gtk/src/ghb.ui | 10 +++++----- gtk/src/main.c | 8 ++++---- gtk/src/preview.c | 6 +++++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 8056df6dc..226e68657 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -762,7 +762,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 0 - 16 + 8 True @@ -830,7 +830,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 0 - 16 + 8 True @@ -875,7 +875,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 0 - 16 + 8 True @@ -898,7 +898,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 hh:mm:ss - 10 + 8 False @@ -1070,7 +1070,7 @@ - Large file size (>4GB) + Large file (>4GB) True True False diff --git a/gtk/src/main.c b/gtk/src/main.c index 7a08d2b63..421eac1c2 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -349,25 +349,25 @@ bind_audio_tree_model (signal_user_data_t *ud) column = gtk_tree_view_column_new_with_attributes( _("Codec"), cell, "text", 1, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); - gtk_tree_view_column_set_min_width (column, 105); + gtk_tree_view_column_set_min_width (column, 120); cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( _("Bitrate"), cell, "text", 2, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); - gtk_tree_view_column_set_min_width (column, 60); + gtk_tree_view_column_set_min_width (column, 80); cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( _("Sample Rate"), cell, "text", 3, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); - gtk_tree_view_column_set_min_width (column, 105); + gtk_tree_view_column_set_min_width (column, 115); cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( _("Mix"), cell, "text", 4, NULL); gtk_tree_view_append_column(treeview, GTK_TREE_VIEW_COLUMN(column)); - gtk_tree_view_column_set_min_width (column, 120); + gtk_tree_view_column_set_min_width (column, 150); cell = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes( 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; -- cgit v1.2.3