From cac8062346bd94bb91ef265e7bf7c796ce34d785 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 6 Oct 2009 16:08:22 +0000 Subject: [PATCH] LinGui: make the activity window a little wider and make the label showing the location of the activity log file big/bold git-svn-id: svn://localhost/HandBrake/trunk@2872 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/ghb.ui | 5 +++-- gtk/src/main.c | 6 ++++-- gtk/src/settings.c | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index eabbd707..68cf4d54 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -4715,6 +4715,7 @@ Requires subme >= 6 and trellis >= 1. True + 5 False 1 @@ -4728,8 +4729,8 @@ Requires subme >= 6 and trellis >= 1. GTK_SHADOW_IN - 500 - 500 + 600 + 600 True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK diff --git a/gtk/src/main.c b/gtk/src/main.c index 2c732079..3b3ab25b 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -523,7 +523,7 @@ IoRedirect(signal_user_data_t *ud) { GIOChannel *channel; gint pfd[2]; - gchar *config, *path; + gchar *config, *path, *str; // I'm opening a pipe and attaching the writer end to stderr // The reader end will be polled by main event loop and I'll get @@ -539,7 +539,9 @@ IoRedirect(signal_user_data_t *ud) path = g_strdup_printf("%s/%s", config, "Activity.log"); ud->activity_log = g_io_channel_new_file (path, "w", NULL); ud->job_activity_log = NULL; - ghb_ui_update(ud, "activity_location", ghb_string_value(path)); + str = g_strdup_printf("%s", path); + ghb_ui_update(ud, "activity_location", ghb_string_value(str)); + g_free(str); g_free(path); g_free(config); // Set encoding to raw. diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 3e3de4ba..857bf708 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -625,7 +625,7 @@ update_widget(GtkWidget *widget, const GValue *value) } else if (type == GTK_TYPE_LABEL) { - gtk_label_set_text (GTK_LABEL(widget), str); + gtk_label_set_markup (GTK_LABEL(widget), str); } else if (type == GTK_TYPE_FILE_CHOOSER_BUTTON) { -- 2.11.0