Permalink
Browse files

eliminate a g_critical by getting the submenu after Parse.parse

  • Loading branch information...
1 parent 36390ee commit da21013cb08952e1f56961a30b8597c77325d473 @rainwoodman rainwoodman committed Feb 22, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 applet/switcher.vala
View
2 applet/switcher.vala
@@ -407,7 +407,6 @@ public extern string* __get_task_name_by_pid(int pid);
private void update(bool include_menu) {
search_box.text = "";
- Gtk.Menu menu = _label_item.submenu;
this.visible = (_show_icon | _show_label);
if (!this.visible) return;
@@ -445,6 +444,7 @@ public extern string* __get_task_name_by_pid(int pid);
if (_show_window_list) {
s = replace(s, "%submenu%", do_xml_menu());
Parser.parse(this, s);
+ Gtk.Menu menu = _label_item.submenu;
Gnomenu.MenuItem misd = this.get("/switcher/show_desktop");
if (misd!=null) {

0 comments on commit da21013

Please sign in to comment.