]> git.sur5r.net Git - bacula/bacula/commitdiff
Improved appearance under GTK (borders, initial columns width).
authorNicolas Boichat <nicolas@boichat.ch>
Sat, 17 Apr 2004 23:17:09 +0000 (23:17 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sat, 17 Apr 2004 23:17:09 +0000 (23:17 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1232 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxblistctrl.cpp
bacula/src/wx-console/wxbrestorepanel.cpp
bacula/src/wx-console/wxbtreectrl.cpp

index 0300acc07e45c9121b3b5867ddc2eeecd5257fa2..f74755c82a40a0fe90282f2fd3fe515baef81e20 100644 (file)
@@ -38,7 +38,7 @@ DEFINE_LOCAL_EVENT_TYPE(wxbLIST_MARKED_EVENT)
 
 wxbListCtrl::wxbListCtrl(
       wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size): 
-            wxListCtrl(parent, id, pos, size,wxLC_REPORT) {
+            wxListCtrl(parent, id, pos, size, wxLC_REPORT | wxSUNKEN_BORDER) {
 }
 
 wxbListCtrl::~wxbListCtrl() {}
index add8cba5cc9c6f2bbca1b635f77da94fc081e09a..a6e2dea7522cabd4e065cc8fbb9686ebdb417fdb 100644 (file)
@@ -222,7 +222,7 @@ wxbRestorePanel::wxbRestorePanel(wxWindow* parent): wxbPanel(parent) {
    info.SetText("Group");
    info.SetAlign(wxLIST_FORMAT_RIGHT);
    list->InsertColumn(6, info);
-
+   
    secondSizer->AddGrowableCol(1);
    secondSizer->AddGrowableRow(0);
 
@@ -241,6 +241,10 @@ wxbRestorePanel::wxbRestorePanel(wxWindow* parent): wxbPanel(parent) {
 
    jobChoice->Enable(false);
 
+   for (int i = 0; i < 7; i++) {
+      list->SetColumnWidth(i, 70);
+   }
+
    working = false;
 }
 
index 40bde23835e232a5055d990e692b4ed493f905a5..4647d07a91f0bde1cd7d69fcfecb22c1285036c8 100644 (file)
@@ -38,7 +38,7 @@ DEFINE_LOCAL_EVENT_TYPE(wxbTREE_MARKED_EVENT)
 
 wxbTreeCtrl::wxbTreeCtrl(
       wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size): 
-            wxTreeCtrl(parent, id, pos, size) {
+            wxTreeCtrl(parent, id, pos, size, wxSUNKEN_BORDER | wxTR_HAS_BUTTONS) {
 }
 
 wxbTreeCtrl::~wxbTreeCtrl() {}