From 69a8a3d50d0d53078368cb7f6b82a28ef27f97a2 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 17 Apr 2004 23:17:09 +0000 Subject: [PATCH] Improved appearance under GTK (borders, initial columns width). git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1232 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/wxblistctrl.cpp | 2 +- bacula/src/wx-console/wxbrestorepanel.cpp | 6 +++++- bacula/src/wx-console/wxbtreectrl.cpp | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bacula/src/wx-console/wxblistctrl.cpp b/bacula/src/wx-console/wxblistctrl.cpp index 0300acc07e..f74755c82a 100644 --- a/bacula/src/wx-console/wxblistctrl.cpp +++ b/bacula/src/wx-console/wxblistctrl.cpp @@ -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() {} diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index add8cba5cc..a6e2dea752 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -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; } diff --git a/bacula/src/wx-console/wxbtreectrl.cpp b/bacula/src/wx-console/wxbtreectrl.cpp index 40bde23835..4647d07a91 100644 --- a/bacula/src/wx-console/wxbtreectrl.cpp +++ b/bacula/src/wx-console/wxbtreectrl.cpp @@ -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() {} -- 2.39.5