2 This patch fixes a text sizing problem in the tray-monitor.
5 Apply it to version 2.4.4 with:
8 patch -p0 <2.4.4-tray-sizing.patch
9 ./configure <your options>
15 Index: src/tray-monitor/tray-monitor.c
16 ===================================================================
17 --- src/tray-monitor/tray-monitor.c (revision 8393)
18 +++ src/tray-monitor/tray-monitor.c (working copy)
21 Bacula® - The Network Backup Solution
23 - Copyright (C) 2004-2007 Free Software Foundation Europe e.V.
24 + Copyright (C) 2004-2009 Free Software Foundation Europe e.V.
26 The main author of Bacula is Kern Sibbald, with contributions from
27 many others, a complete list can be found in the file AUTHORS.
29 static GtkWidget *textview;
30 static GtkTextBuffer *buffer;
31 static GtkWidget *timeoutspinner;
32 +static GtkWidget *scrolledWindow;
33 char** xpm_generic_var;
34 static gboolean blinkstate = TRUE;
39 gtk_box_pack_start(GTK_BOX(vbox), daemon_table, FALSE, FALSE, 0);
42 textview = gtk_text_view_new();
44 + scrolledWindow = gtk_scrolled_window_new(NULL, NULL);
45 + gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
46 + gtk_container_add(GTK_CONTAINER (scrolledWindow), textview);
48 buffer = gtk_text_buffer_new(NULL);
50 gtk_text_buffer_set_text(buffer, "", -1);
53 gtk_text_view_set_buffer(GTK_TEXT_VIEW(textview), buffer);
55 - gtk_box_pack_start(GTK_BOX(vbox), textview, TRUE, TRUE, 0);
56 + gtk_box_pack_start(GTK_BOX(vbox), scrolledWindow, TRUE, TRUE, 0);
58 GtkWidget* hbox = gtk_hbox_new(FALSE, 10);