From: Kern Sibbald Date: Tue, 29 Apr 2003 18:58:41 +0000 (+0000) Subject: Partially fill run dialog in gnome-console X-Git-Tag: Release-1.31~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=edac22993389727998e35d266edbeaf86e5532ee;p=bacula%2Fbacula Partially fill run dialog in gnome-console git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@470 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kernstodo b/bacula/kernstodo index 830d745d09..0168026ba1 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -23,6 +23,7 @@ For 1.30 release: - Figure out how to use ssh or stunnel to protect Bacula communications. After 1.30: +- Check if Job/File retentions apply to multivolume jobs. - Change M_INFO to M_RESTORED for all restored files. - Remove subsysdir from conf files (used only in autostart scripts). - Implement console @echo command. diff --git a/bacula/src/console.glade b/bacula/src/console.glade index a22744b24a..40675b9f66 100644 --- a/bacula/src/console.glade +++ b/bacula/src/console.glade @@ -305,6 +305,19 @@ GNOME_STOCK_PIXMAP_SEARCH + + + GtkButton + Toolbar:button + restore_button + + clicked + on_restore_button_clicked + Tue, 29 Apr 2003 15:25:57 GMT + + + GNOME_STOCK_PIXMAP_REVERT + @@ -835,10 +848,10 @@ RunDialog Run a Job GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE + GTK_WIN_POS_CENTER False - True - True + False + False False @@ -988,7 +1001,7 @@ GtkCombo - combo21 + combo_job False True False @@ -1004,9 +1017,9 @@ GtkEntry GtkCombo:entry - entry14 + entry_job True - True + False True 0 @@ -1032,14 +1045,23 @@ GtkCombo - combo22 + type_combo 131 - False + + selection_received + on_type_combo_selection_received + Tue, 29 Apr 2003 15:01:06 GMT + + True True False True False - + Backup +Restore +Admin +Verify + 6 False @@ -1049,13 +1071,13 @@ GtkEntry GtkCombo:entry - entry15 + entry_type 127 True - True + False True 0 - + Backup @@ -1109,7 +1131,7 @@ GtkCombo - combo23 + combo_client 236 False True @@ -1126,9 +1148,9 @@ GtkEntry GtkCombo:entry - entry16 + entry_client True - True + False True 0 @@ -1184,7 +1206,7 @@ GtkCombo - combo24 + combo_fileset False True False @@ -1200,9 +1222,9 @@ GtkEntry GtkCombo:entry - entry17 + entry_fileset True - True + False True 0 @@ -1211,9 +1233,14 @@ GtkButton - button24 + view_fileset_button 12 True + + clicked + on_view_fileset_clicked + Tue, 29 Apr 2003 14:57:25 GMT + GTK_RELIEF_NORMAL @@ -1272,7 +1299,7 @@ GtkCombo - combo25 + combo_level False True False @@ -1288,9 +1315,9 @@ GtkEntry GtkCombo:entry - entry18 + entry_level True - True + False True 0 @@ -1330,7 +1357,7 @@ GtkLabel label72 70 - + GTK_JUSTIFY_CENTER False 0.5 @@ -1346,7 +1373,7 @@ GtkCombo - combo26 + combo_pool False True False @@ -1362,12 +1389,12 @@ GtkEntry GtkCombo:entry - entry19 + entry_pool True - True + False True 0 - + Default @@ -1402,7 +1429,7 @@ GtkLabel - label74 + label77 70 GTK_JUSTIFY_CENTER @@ -1420,7 +1447,7 @@ GtkCombo - combo27 + combo_where False True False @@ -1436,19 +1463,19 @@ GtkEntry GtkCombo:entry - entry20 + entry_where True True True 0 - + /tmp/bacula-restores GtkLabel - label75 - + label78 + GTK_JUSTIFY_CENTER False 0.5 @@ -1456,7 +1483,7 @@ 0 0 - 114 + 120 False False @@ -1464,10 +1491,158 @@ + + GtkHBox + hbox35 + False + 0 + + 5 + False + False + + + + GtkLabel + label80 + 70 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkCombo + combo30 + False + True + False + True + False + + + 0 + True + True + + + + GtkEntry + GtkCombo:entry + entry_when + True + True + True + 0 + + + + + + GtkLabel + label81 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 120 + False + False + + + + + + GtkHBox + hbox36 + False + 0 + + 0 + True + True + + + + GtkLabel + label82 + 70 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + False + + + + + GtkCombo + combo_messages + False + True + False + True + False + + + 0 + True + True + + + + GtkEntry + GtkCombo:entry + entry_messages + True + False + True + 0 + Standard + + + + + GtkLabel + label83 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 120 + False + False + + + + GtkLabel - label76 - + label84 + GTK_JUSTIFY_CENTER False 0.5 @@ -1475,7 +1650,7 @@ 0 0 - 5 + 0 False False @@ -1484,4 +1659,197 @@ + + GtkWindow + Restore_tree + Restore + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + True + False + + + GtkVBox + vbox13 + False + 0 + + + GtkScrolledWindow + scrolledwindow4 + GTK_POLICY_ALWAYS + GTK_POLICY_ALWAYS + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + True + True + + + + GtkCTree + ctree2 + True + 7 + 55,246,67,80,80,80,80 + GTK_SELECTION_SINGLE + True + GTK_SHADOW_IN + + + GtkLabel + CTree:title + label89 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label90 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label91 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label92 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label93 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label94 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkLabel + CTree:title + label95 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + + GtkHBox + hbox38 + False + 0 + + 0 + False + True + + + + GtkLabel + label88 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + 0 + False + True + + + + + GtkEntry + entry25 + Enter Commands Here + True + True + True + True + + key_press_event + on_entry1_key_press_event + Mon, 01 Apr 2002 07:32:11 GMT + + + key_release_event + on_entry1_key_release_event + Tue, 29 Apr 2003 08:15:13 GMT + + True + True + 0 + + + 0 + True + True + + + + + + diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index f03ea1eadc..76489ac817 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -50,6 +50,7 @@ static int jobscmd(UAContext *ua, char *cmd); static int filesetscmd(UAContext *ua, char *cmd); static int clientscmd(UAContext *ua, char *cmd); static int msgscmd(UAContext *ua, char *cmd); +static int poolscmd(UAContext *ua, char *cmd); struct cmdstruct { char *key; int (*func)(UAContext *ua, char *cmd); char *help; }; static struct cmdstruct commands[] = { @@ -58,6 +59,7 @@ static struct cmdstruct commands[] = { { N_(".filesets"), filesetscmd, NULL}, { N_(".clients"), clientscmd, NULL}, { N_(".msgs"), msgscmd, NULL}, + { N_(".pools"), poolscmd, NULL}, { N_(".messages"), qmessagescmd, NULL}, { N_(".quit"), quitcmd, NULL}, { N_(".exit"), quitcmd, NULL} @@ -155,3 +157,15 @@ static int msgscmd(UAContext *ua, char *cmd) UnlockRes(); return 1; } + +static int poolscmd(UAContext *ua, char *cmd) +{ + POOL *pool = NULL; + LockRes(); + while ( (pool = (POOL *)GetNextRes(R_POOL, (RES *)pool)) ) { + bsendmsg(ua, "%s\n", pool->hdr.name); + } + UnlockRes(); + return 1; +} + diff --git a/bacula/src/version.h b/bacula/src/version.h index 17f450a791..135f9206c5 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ -#define VERSION "1.30" +#define VERSION "1.31" #define VSTRING "1" -#define BDATE "28 April 2003" -#define LSMDATE "28Apr03" +#define BDATE "29 April 2003" +#define LSMDATE "29Apr03" /* Debug flags */ #define DEBUG 1