Skip to content

Commit

Permalink
Use Gtk::manage since gtkmm version of ubuntu core18 doesn't support …
Browse files Browse the repository at this point in the history
…it yet
  • Loading branch information
xeco23 committed Dec 6, 2020
1 parent bdb55ac commit 56353cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ TrayIcon::TrayIcon()
auto const pixbuf = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/16x16/apps/whatsapp-for-linux.png");
Gtk::IconTheme::get_default()->add_builtin_icon("whatsapp-for-linux-indicator", Gtk::ICON_SIZE_MENU, pixbuf);

auto const showMenuItem = Gtk::make_managed<Gtk::MenuItem>("Open");
auto const quitMenuItem = Gtk::make_managed<Gtk::MenuItem>("Quit");
auto const showMenuItem = Gtk::manage(new Gtk::MenuItem{"Open"});
auto const quitMenuItem = Gtk::manage(new Gtk::MenuItem{"Quit"});
m_popupMenu.append(*showMenuItem);
m_popupMenu.append(*quitMenuItem);

Expand Down

0 comments on commit 56353cc

Please sign in to comment.