[haiku-commits] r38123 - haiku/trunk/src/bin

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Aug 2010 19:13:13 +0200 (CEST)

Author: mmu_man
Date: 2010-08-15 19:13:12 +0200 (Sun, 15 Aug 2010)
New Revision: 38123
Changeset: http://dev.haiku-os.org/changeset/38123

Modified:
   haiku/trunk/src/bin/WindowShade.cpp
Log:
Force reloading the current decorator on -r until they handle color changes 
correctly.


Modified: haiku/trunk/src/bin/WindowShade.cpp
===================================================================
--- haiku/trunk/src/bin/WindowShade.cpp 2010-08-15 16:33:00 UTC (rev 38122)
+++ haiku/trunk/src/bin/WindowShade.cpp 2010-08-15 17:13:12 UTC (rev 38123)
@@ -15,7 +15,16 @@
 #include <InterfaceDefs.h>
 #include <String.h>
 
+namespace BPrivate {
+int32 count_decorators(void);
+int32 get_decorator(void);
+status_t get_decorator_name(const int32 &index, BString &name);
+status_t get_decorator_preview(const int32 &index, BBitmap *bitmap);
+status_t set_decorator(const int32 &index);
+}
 
+using namespace BPrivate;
+
 static int sColorWhich = -1;
 static struct option const kLongOptions[] = {
        {"activetab", required_argument, &sColorWhich, B_WINDOW_TAB_COLOR},
@@ -133,6 +142,7 @@
 
                        case 'r':
                                // TODO: refresh (but shouldn't be needed)
+                               set_decorator(get_decorator());
                                break;
                        case 's':
                                // IGNORED, for compatibility with original app


Other related posts:

  • » [haiku-commits] r38123 - haiku/trunk/src/bin - revol