From 2df9cea9583dc89f79aace279c01e22de087bee4 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 16 Oct 2007 19:00:51 +0000 Subject: [PATCH] kes Activate Close button on tray-monitor window. This fixes bug #986. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5752 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/2.2.5-tray-monitor.patch | 25 +++++++++++++++++++++++++ bacula/src/tray-monitor/tray-monitor.c | 2 +- bacula/technotes-2.1 | 3 +++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 bacula/patches/2.2.5-tray-monitor.patch diff --git a/bacula/patches/2.2.5-tray-monitor.patch b/bacula/patches/2.2.5-tray-monitor.patch new file mode 100644 index 0000000000..542aea74d0 --- /dev/null +++ b/bacula/patches/2.2.5-tray-monitor.patch @@ -0,0 +1,25 @@ + + This patch activates the Close button in the tray monitor window. + It fixes bug #986. + + Apply it to Bacula version 2.2.5 with: + + cd + patch -p0 <2.2.5-tray-monitor.patch + make + ... + make install + +Index: src/tray-monitor/tray-monitor.c +=================================================================== +--- src/tray-monitor/tray-monitor.c (revision 5717) ++++ src/tray-monitor/tray-monitor.c (working copy) +@@ -478,7 +478,7 @@ + gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); + + button = new_image_button("gtk-close", _("Close")); +-// g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_hide), G_OBJECT(window)); ++ g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_hide), G_OBJECT(window)); + gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); + + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); diff --git a/bacula/src/tray-monitor/tray-monitor.c b/bacula/src/tray-monitor/tray-monitor.c index 3f8fbec5b8..195bfd5b94 100644 --- a/bacula/src/tray-monitor/tray-monitor.c +++ b/bacula/src/tray-monitor/tray-monitor.c @@ -478,7 +478,7 @@ int main(int argc, char *argv[]) gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); button = new_image_button("gtk-close", _("Close")); -// g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_hide), G_OBJECT(window)); + g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_hide), G_OBJECT(window)); gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 3b5813ae98..56b6c7f051 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,9 @@ Technical notes on version 2.2 General: +16Oct07 +kes Activate Close button on tray-monitor window. This fixes + bug #986. 12Oct07 kes Fix spurious warning message printed when creating a volume with a LabelFormat. This fixes bug #976. -- 2.39.5