← Back to team overview

gnome-split-team team mailing list archive

[Branch ~respawneral/gnome-split/mainline] Rev 266: Couple of fixes for the status widget.

 

------------------------------------------------------------
revno: 266
committer: Guillaume Mazoyer <respawneral@xxxxxxxxx>
branch nick: statusbar-fix
timestamp: Sat 2011-10-15 15:25:47 +0200
message:
  Couple of fixes for the status widget.
  
  Fix for a bug not showing the status widget if
  using GTK+ 3. Also fix the small border around
  the speed label in the status widget.
modified:
  src/org/gnome/split/gtk/MainWindow.java
  src/org/gnome/split/gtk/widget/StatusWidget.java


--
lp:gnome-split
https://code.launchpad.net/~respawneral/gnome-split/mainline

Your team GNOME Split developers is subscribed to branch lp:gnome-split.
To unsubscribe from this branch go to https://code.launchpad.net/~respawneral/gnome-split/mainline/+edit-subscription
=== modified file 'src/org/gnome/split/gtk/MainWindow.java'
--- src/org/gnome/split/gtk/MainWindow.java	2011-02-14 16:25:27 +0000
+++ src/org/gnome/split/gtk/MainWindow.java	2011-10-15 13:25:47 +0000
@@ -202,6 +202,7 @@
 
         // Add status widget
         this.status = new StatusWidget();
+        this.status.show();
         this.mainContainer.packStart(this.status, false, false, 0);
 
         // Show the status widget if needed

=== modified file 'src/org/gnome/split/gtk/widget/StatusWidget.java'
--- src/org/gnome/split/gtk/widget/StatusWidget.java	2011-05-05 20:23:30 +0000
+++ src/org/gnome/split/gtk/widget/StatusWidget.java	2011-10-15 13:25:47 +0000
@@ -48,15 +48,15 @@
 
         // Add a frame to pack the widgets
         final Frame frame = new Frame(null);
-        frame.setShadowType(ShadowType.IN);
+        frame.setShadowType(ShadowType.NONE);
         this.packStart(frame, false, false, 0);
 
-        // Show the container
-        frame.show();
-
         // Add the speed label
         this.speed = new Label();
         frame.add(speed);
+
+        // Show the container
+        frame.showAll();
     }
 
     /**