]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.4-tray-sizing.patch
Update date
[bacula/bacula] / bacula / patches / 2.4.4-tray-sizing.patch
1
2  This patch fixes a text sizing problem in the tray-monitor.
3  It fixes bug #1219.
4
5  Apply it to version 2.4.4 with:
6
7  cd <bacula-source>
8  patch -p0 <2.4.4-tray-sizing.patch
9  ./configure <your options>
10  make
11  ...
12  make install
13
14
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)
19 @@ -1,7 +1,7 @@
20  /*
21     Bacula® - The Network Backup Solution
22  
23 -   Copyright (C) 2004-2007 Free Software Foundation Europe e.V.
24 +   Copyright (C) 2004-2009 Free Software Foundation Europe e.V.
25  
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.
28 @@ -97,6 +97,7 @@
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;
35  
36 @@ -409,9 +410,13 @@
37     }
38  
39     gtk_box_pack_start(GTK_BOX(vbox), daemon_table, FALSE, FALSE, 0);
40 -
41 +  
42     textview = gtk_text_view_new();
43  
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);
47 +   
48     buffer = gtk_text_buffer_new(NULL);
49  
50     gtk_text_buffer_set_text(buffer, "", -1);
51 @@ -456,7 +461,7 @@
52  
53     gtk_text_view_set_buffer(GTK_TEXT_VIEW(textview), buffer);
54  
55 -   gtk_box_pack_start(GTK_BOX(vbox), textview, TRUE, TRUE, 0);
56 +   gtk_box_pack_start(GTK_BOX(vbox), scrolledWindow, TRUE, TRUE, 0);
57  
58     GtkWidget* hbox = gtk_hbox_new(FALSE, 10);
59