[haiku-commits] haiku: hrev50631 - src/preferences/notifications

  • From: "" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "humdingerb" for DMARC)
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 30 Oct 2016 10:29:55 +0100 (CET)

hrev50631 adds 1 changeset to branch 'master'
old head: 4bc43f43681b7b54b375f24aaa3a14e713ab787c
new head: a034dfb647f1ba6ff4e5b04c494ed5c4ec9b9f56
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=a034dfb647f1+%5E4bc43f43681b

----------------------------------------------------------------------------

a034dfb647f1: Small GUI fixes in Notification prefs
  
  * Open the window a bit bigger so the scroll bar in the "Notifications"
    view isn't activated.
  * Make the window horizontally resizable.
  * Sentence casing

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50631
Commit:      a034dfb647f1ba6ff4e5b04c494ed5c4ec9b9f56
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a034dfb647f1
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Sun Oct 30 09:24:40 2016 UTC

----------------------------------------------------------------------------

2 files changed, 4 insertions(+), 3 deletions(-)
src/preferences/notifications/NotificationsView.cpp | 4 ++--
src/preferences/notifications/PrefletWin.cpp        | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/preferences/notifications/NotificationsView.cpp 
b/src/preferences/notifications/NotificationsView.cpp
index ccca054..b5fecbd 100644
--- a/src/preferences/notifications/NotificationsView.cpp
+++ b/src/preferences/notifications/NotificationsView.cpp
@@ -82,8 +82,8 @@ NotificationsView::NotificationsView(SettingsHost* host)
                (kCLVTitlePadding * 2), rect.Width(), B_TRUNCATE_END, 
B_ALIGN_LEFT);
        fNotifications->AddColumn(fTitleCol, kTitleIndex);
 
-       fDateCol = new BDateColumn(B_TRANSLATE("Last Received"), 100,
-               be_plain_font->StringWidth(B_TRANSLATE("Last Received")) +
+       fDateCol = new BDateColumn(B_TRANSLATE("Last received"), 100,
+               be_plain_font->StringWidth(B_TRANSLATE("Last received")) +
                (kCLVTitlePadding * 2), rect.Width(), B_ALIGN_LEFT);
        fNotifications->AddColumn(fDateCol, kDateIndex);
 
diff --git a/src/preferences/notifications/PrefletWin.cpp 
b/src/preferences/notifications/PrefletWin.cpp
index 465604b..b269bb8 100644
--- a/src/preferences/notifications/PrefletWin.cpp
+++ b/src/preferences/notifications/PrefletWin.cpp
@@ -33,13 +33,14 @@ const int32 kApply = '_APY';
 
 PrefletWin::PrefletWin()
        :
-       BWindow(BRect(0, 0, 1, 1), B_TRANSLATE_SYSTEM_NAME("Notifications"),
+       BWindow(BRect(0, 0, 500, 400), B_TRANSLATE_SYSTEM_NAME("Notifications"),
                B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
                | B_AUTO_UPDATE_SIZE_LIMITS)
 {
        // Preflet container view
        fMainView = new PrefletView(this);
        fMainView->SetBorder(B_NO_BORDER);
+       fMainView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
 
        // Apply and revert buttons
        fRevert = new BButton("revert", B_TRANSLATE("Revert"),


Other related posts:

  • » [haiku-commits] haiku: hrev50631 - src/preferences/notifications