[gtkmm] Bin: Correct a code comment.



commit 85edd00785fa37c3020ce791c2fd1f2cce78a488
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon May 2 11:52:38 2011 +0200

    Bin: Correct a code comment.
    
    * gtk/src/bin.ccg: add_pixlabel(): Correct a variable name and comment.
    Noticed by Kjell Ahlstedt.

 ChangeLog       |   17 ++++++++++++++---
 gtk/src/bin.ccg |   16 ++++++++--------
 2 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 115afdd..d326d07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,19 @@
-2011-05-02  Murray Cumming  <murrayc murrayc-desktop>
+2011-05-02  Murray Cumming  <murrayc murrayc com>
 
-	reviewed by: <delete if not using a buddy>
+	Bin: Correct a code comment.
 
-	* gtk/src/messagedialog.hg:
+	* gtk/src/bin.ccg: add_pixlabel(): Correct a variable name and comment.
+	Noticed by Kjell Ahlstedt.
+
+2011-05-02  Murray Cumming  <murrayc murrayc com>
+
+  MessageDialog: Correct the get_message_area() return type.
+
+  * gtk/src/messagedialog.hg: get_message_area(): Return a Box instead of a VBox.
+  This may have worked already, but this is a minor API change that should not
+  affect anybody too much, and hopefully it will be OK this soon after the 3.0.0
+  release.
+  Noticed by Kjell Ahlstedt.
 
 2011-05-02  Murray Cumming  <murrayc murrayc com>
 
diff --git a/gtk/src/bin.ccg b/gtk/src/bin.ccg
index 18e38ff..57e8e20 100644
--- a/gtk/src/bin.ccg
+++ b/gtk/src/bin.ccg
@@ -84,14 +84,14 @@ Bin::add_pixlabel(const std::string& pixfile,
   Label* label = manage(new Label(str));
   label->set_alignment (x_align, y_align);
 
-  //Put them in a VBox:
-  Box* vbox = manage(new HBox(false, 5));
-  vbox->pack_start(*pmap, PACK_SHRINK);
-  vbox->pack_start(*label);
-  vbox->show_all();
-
-  //And put that VBox in this:
-  add(*vbox);
+  //Put them in a Box:
+  Box* hbox = manage(new HBox(false, 5));
+  hbox->pack_start(*pmap, PACK_SHRINK);
+  hbox->pack_start(*label);
+  hbox->show_all();
+
+  //And put that Box in this:
+  add(*hbox);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]