Search
j0ke.net Open Build Service
>
Projects
>
server:backup
>
bacula
> 2.4.4-tray-sizing.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 2.4.4-tray-sizing.patch of Package bacula (Revision 15)
Currently displaying revision
15
,
show latest
This patch fixes a text sizing problem in the tray-monitor. It fixes bug #1219. Apply it to version 2.4.4 with: cd <bacula-source> patch -p0 <2.4.4-tray-sizing.patch ./configure <your options> make ... make install Index: src/tray-monitor/tray-monitor.c =================================================================== --- src/tray-monitor/tray-monitor.c (revision 8393) +++ src/tray-monitor/tray-monitor.c (working copy) @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2004-2007 Free Software Foundation Europe e.V. + Copyright (C) 2004-2009 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -97,6 +97,7 @@ static GtkWidget *textview; static GtkTextBuffer *buffer; static GtkWidget *timeoutspinner; +static GtkWidget *scrolledWindow; char** xpm_generic_var; static gboolean blinkstate = TRUE; @@ -409,9 +410,13 @@ } gtk_box_pack_start(GTK_BOX(vbox), daemon_table, FALSE, FALSE, 0); - + textview = gtk_text_view_new(); + scrolledWindow = gtk_scrolled_window_new(NULL, NULL); + gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledWindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_container_add(GTK_CONTAINER (scrolledWindow), textview); + buffer = gtk_text_buffer_new(NULL); gtk_text_buffer_set_text(buffer, "", -1); @@ -456,7 +461,7 @@ gtk_text_view_set_buffer(GTK_TEXT_VIEW(textview), buffer); - gtk_box_pack_start(GTK_BOX(vbox), textview, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(vbox), scrolledWindow, TRUE, TRUE, 0); GtkWidget* hbox = gtk_hbox_new(FALSE, 10);