[gnote] Replace HBox with Grid in tray



commit 05feac2f47c9306d8f001805ed5d5a3dfe9698fc
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun May 26 14:22:15 2013 +0300

    Replace HBox with Grid in tray

 src/tray.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tray.cpp b/src/tray.cpp
index 8346b4a..965ef4c 100644
--- a/src/tray.cpp
+++ b/src/tray.cpp
@@ -25,7 +25,6 @@
 #include <boost/format.hpp>
 
 #include <glibmm/i18n.h>
-#include <gtkmm/box.h>
 #include <gtkmm/main.h>
 #include <gtkmm/menuitem.h>
 #include <gtkmm/separatormenuitem.h>
@@ -75,17 +74,18 @@ namespace gnote {
   {
     set_image(*manage(new Gtk::Image(IconManager::obj().get_icon(IconManager::NOTE, 16))));
     if(show_pin) {
-      Gtk::HBox *box = manage(new Gtk::HBox(false, 0));
+      Gtk::Grid *box = manage(new Gtk::Grid);
       Gtk::Widget *child = get_child();
       Gtk::Container::remove(*child);
-      box->pack_start(*child, true, true, 0);
+      child->set_hexpand(true);
+      box->attach(*child, 0, 0, 1, 1);
       add(*box);
       box->show();
 
       m_pinned = note->is_pinned();
       m_pin_img = manage(new Gtk::Image(m_pinned ? get_pindown_icon() : get_pinup_icon()));
       m_pin_img->show();
-      box->pack_start(*m_pin_img, false, false, 0);
+      box->attach(*m_pin_img, 1, 0, 1, 1);
     }
   }
 


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