Advertisement
Guest User

shut-debug.patch

a guest
Feb 27th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 9.04 KB | None | 0 0
  1. diff --git a/libserver/globalmenuadapter.vala b/libserver/globalmenuadapter.vala
  2. index d773fb9..46ba5b5 100644
  3. --- a/libserver/globalmenuadapter.vala
  4. +++ b/libserver/globalmenuadapter.vala
  5. @@ -79,7 +79,7 @@ public class Gnomenu.GlobalMenuAdapter : Gnomenu.Adapter {
  6.     private void chainup_key_changed(Gtk.Window window) {
  7.         GLib.Type type = typeof(Gtk.Window);
  8.         var window_class = (Gtk.WindowClass) type.class_ref();
  9. -       debug("chainup to Gtk.Window keys changed");
  10. +/*     debug("chainup to Gtk.Window keys changed");*/
  11.         window_class.keys_changed(window);
  12.     }
  13.  
  14. diff --git a/libserver/globalmenubar.vala b/libserver/globalmenubar.vala
  15. index 01c3351..d979b70 100644
  16. --- a/libserver/globalmenubar.vala
  17. +++ b/libserver/globalmenubar.vala
  18. @@ -162,7 +162,7 @@ public class Gnomenu.GlobalMenuBar : Gnomenu.MenuBar {
  19.     private void chainup_key_changed(Gtk.Window window) {
  20.         GLib.Type type = typeof(Gtk.Window);
  21.         var window_class = (Gtk.WindowClass) type.class_ref();
  22. -       debug("chainup to Gtk.Window keys changed");
  23. +/*     debug("chainup to Gtk.Window keys changed");*/
  24.         window_class.keys_changed(window);
  25.     }
  26.     private void _hierarchy_changed_chain_keys(Gtk.Widget? old_toplevel) {
  27. @@ -188,7 +188,7 @@ public class Gnomenu.GlobalMenuBar : Gnomenu.MenuBar {
  28.     }
  29.  
  30.     private void regrab_menu_bar_key() {
  31. -       debug("regrab menu_bar key");
  32. +/*     debug("regrab menu_bar key");*/
  33.         ungrab_menu_bar_key();
  34.         grab_menu_bar_key();
  35.     }
  36. diff --git a/libserver/monitor.vala b/libserver/monitor.vala
  37. index ccfff82..4edab0f 100644
  38. --- a/libserver/monitor.vala
  39. +++ b/libserver/monitor.vala
  40. @@ -153,7 +153,7 @@ internal class Gnomenu.Monitor: GLib.Object {
  41.         int win_num = -1;
  42.         if(win != null) win_num = win.get_monitor_num();
  43.         if(win_num == -1) {
  44. -           debug("fallback to use pointer");
  45. +/*         debug("fallback to use pointer");*/
  46.             win_num = get_monitor_num_at_pointer();
  47.         }
  48.         if(_per_monitor_mode && _monitor_num != -1
  49. @@ -195,7 +195,7 @@ internal class Gnomenu.Monitor: GLib.Object {
  50.         update_active_window(wnck_new);
  51.     }
  52.     private void update_active_window(Wnck.Window? from_wnck_window) {
  53. -       debug("%p, update_active_window called once", this);
  54. +/*     debug("%p, update_active_window called once", this);*/
  55.  
  56.         Gnomenu.Window @new = null;
  57.         if(from_wnck_window != null) {
  58. @@ -215,10 +215,10 @@ internal class Gnomenu.Monitor: GLib.Object {
  59.             if(_wnck_active_window_is_closed) {
  60.                 replace_active_window(_desktop_window);
  61.             }
  62. -           debug("%p, not on my monitor", this);
  63. +/*         debug("%p, not on my monitor", this);*/
  64.             active_window_lost_focus();
  65.         } else { /* @new is on my monitor */
  66. -           debug("%p, on my monitor", this);
  67. +/*         debug("%p, on my monitor", this);*/
  68.             replace_dummy_window(null);
  69.             replace_active_window(@new);
  70.         }
  71. @@ -261,7 +261,7 @@ internal class Gnomenu.Monitor: GLib.Object {
  72.  
  73.     private void active_window_moved() {
  74.         if(_dummy_window != null) {
  75. -           debug("dummy window_moved to life");
  76. +/*         debug("dummy window_moved to life");*/
  77.             /* there is a dummy window around,
  78.              * so the current active window is actually already
  79.              * expired. replace it with dummy when the dummy window
  80. @@ -272,7 +272,7 @@ internal class Gnomenu.Monitor: GLib.Object {
  81.                 replace_active_window(save);
  82.             }
  83.         } else {
  84. -           debug("active window_moved to death");
  85. +/*         debug("active window_moved to death");*/
  86.             /* this is no dummy window around,
  87.              * so the active window is still in
  88.              * focus. if the focused active window
  89. diff --git a/libserver/parser.vala b/libserver/parser.vala
  90. index c05dc89..e34cce8 100644
  91. --- a/libserver/parser.vala
  92. +++ b/libserver/parser.vala
  93. @@ -10,8 +10,8 @@ public class Gnomenu.Parser {
  94.         MarkupParseContext context =
  95.             new MarkupParseContext(parser_functions, 0, parser, null);
  96.         context.parse(description, -1);
  97. -       debug("Parser consumed: %lf for %lu bytes", timer.elapsed(null),
  98. -               description.size());
  99. +/*     debug("Parser consumed: %lf for %lu bytes", timer.elapsed(null),
  100. +               description.size());*/
  101.     }
  102.  
  103.     private class State {
  104. diff --git a/libserver/utils/mnemonickeys.vala b/libserver/utils/mnemonickeys.vala
  105. index 0dcfa14..2c58c42 100644
  106. --- a/libserver/utils/mnemonickeys.vala
  107. +++ b/libserver/utils/mnemonickeys.vala
  108. @@ -20,7 +20,7 @@ internal class Gnomenu.MnemonicKeys {
  109.             Gnomenu.MenuLabel label = item.get_child() as Gnomenu.MenuLabel;
  110.             if(label == null) continue;
  111.             uint keyval = label.mnemonic_keyval;
  112. -           debug("grabbing key for %s:%u", label.label, keyval);
  113. +/**            debug("grabbing key for %s:%u", label.label, keyval);**/
  114.             window.grab_key(keyval, mods);
  115.             keys.insert(keyval, item);
  116.         }
  117. @@ -41,7 +41,7 @@ internal class Gnomenu.MnemonicKeys {
  118.         Gdk.ModifierType mods = Gdk.ModifierType.MOD1_MASK;
  119.         if(current_grab != null) {
  120.             foreach(uint keyval in keys.get_keys()) {
  121. -               debug("ungrabbing %u", keyval);
  122. +/**                debug("ungrabbing %u", keyval);**/
  123.                 current_grab.ungrab_key(keyval, mods);
  124.             }
  125.             current_grab.set_key_widget(null);
  126. diff --git a/libserver/widgets/menubar.vala b/libserver/widgets/menubar.vala
  127. index 006c332..f2c134e 100644
  128. --- a/libserver/widgets/menubar.vala
  129. +++ b/libserver/widgets/menubar.vala
  130. @@ -81,7 +81,7 @@ static const string EMPTY_OVERFLOWN_MENU =
  131.     private MenuItem resolve_item_maybe_from_overflown(MenuItem item) {
  132.         if(item.is_child_of(_overflown_arrow)) {
  133.             string path = overflown_path_to_path(item.item_path);
  134. -           debug("real_item is %s", path);
  135. +/*         debug("real_item is %s", path);*/
  136.             MenuItem real_item = get(path);
  137.             return real_item;
  138.         }
  139. @@ -95,7 +95,7 @@ static const string EMPTY_OVERFLOWN_MENU =
  140.             rebuild_overflown_menu();
  141.             return;
  142.         }
  143. -       debug("item %s activated", item.item_path);
  144. +/*     debug("item %s activated", item.item_path);*/
  145.         activate(resolve_item_maybe_from_overflown(item));
  146.     }
  147.  
  148. @@ -103,7 +103,7 @@ static const string EMPTY_OVERFLOWN_MENU =
  149.         if(item == _overflown_arrow) {
  150.             return;
  151.         }
  152. -       debug("item %s selected", item.item_path);
  153. +/*     debug("item %s selected", item.item_path);*/
  154.         select(resolve_item_maybe_from_overflown(item));
  155.     }
  156.     internal void emit_deselect(MenuItem item) {
  157. @@ -247,7 +247,7 @@ static const string EMPTY_OVERFLOWN_MENU =
  158.     private void rebuild_overflown_menu() {
  159.         /* this is essentially copying the menubar to
  160.          * the submenu of the overflown arrow */
  161. -       debug("rebuild_overflown_menu");
  162. +/*     debug("rebuild_overflown_menu");*/
  163.  
  164.         /* we first serialize this menu to the global menu xml */
  165.         var xml = Serializer.to_string(this);
  166. diff --git a/libserver/widgets/menuitem.vala b/libserver/widgets/menuitem.vala
  167. index b0436b8..c72d159 100644
  168. --- a/libserver/widgets/menuitem.vala
  169. +++ b/libserver/widgets/menuitem.vala
  170. @@ -501,7 +501,7 @@ public class Gnomenu.MenuItem : Gtk.MenuItem, Gnomenu.Item {
  171.             Gnomenu.MenuBar menubar = topmost_shell as Gnomenu.MenuBar;
  172.             menubar.emit_activate(this);
  173.         } else {
  174. -           debug("activate %s, %p", this.item_path, topmost_shell);
  175. +/*         debug("activate %s, %p", this.item_path, topmost_shell);*/
  176.             topmost_shell.activate(this);
  177.         }
  178.     }
  179. diff --git a/libserver/widgets/menulabel.vala b/libserver/widgets/menulabel.vala
  180. index f3b9222..bda1226 100644
  181. --- a/libserver/widgets/menulabel.vala
  182. +++ b/libserver/widgets/menulabel.vala
  183. @@ -132,7 +132,7 @@ public class Gnomenu.MenuLabel: Gtk.Container {
  184.         }
  185.     }
  186.     public override bool mnemonic_activate (bool arg1) {
  187. -       debug("mnemonic_activate %s", arg1.to_string());
  188. +/*     debug("mnemonic_activate %s", arg1.to_string());*/
  189.         return _label_widget.mnemonic_activate(arg1);
  190.     }
  191.  
  192. @@ -146,7 +146,7 @@ public class Gnomenu.MenuLabel: Gtk.Container {
  193.             return;
  194.         }
  195.         child.mnemonic_activate += (obj, arg1) => {
  196. -           debug("mnemonic activate: %s", (obj as Gtk.Label).label);
  197. +/*         debug("mnemonic activate: %s", (obj as Gtk.Label).label);*/
  198.             return false;
  199.         };
  200.         children.append(child as Gtk.Label);
  201. diff --git a/libserver/window.vala b/libserver/window.vala
  202. index 060d35a..01c190d 100644
  203. --- a/libserver/window.vala
  204. +++ b/libserver/window.vala
  205. @@ -131,7 +131,7 @@ public class Gnomenu.Window : GLib.Object {
  206.  
  207.     public virtual signal void property_notify_event(string prop) {
  208.         if(prop == WM_TRANSIENT_FOR) {
  209. -           debug("transient property changed");
  210. +/*         debug("transient property changed");*/
  211.             recompute_transient();
  212.             menu_context_changed();
  213.         } else {
  214. @@ -141,7 +141,7 @@ public class Gnomenu.Window : GLib.Object {
  215.  
  216.     private void rewire_globalmenu_events(string prop) {
  217.         if(prop == NET_GLOBALMENU_MENU_CONTEXT) {
  218. -           debug("window (%p) prop menu context is reported changed", this);
  219. +/*         debug("window (%p) prop menu context is reported changed", this); */
  220.             rewire_target.menu_context_changed();
  221.         } else
  222.         if(prop == NET_GLOBALMENU_MENU_EVENT) {
  223. @@ -194,7 +194,7 @@ public class Gnomenu.Window : GLib.Object {
  224.             ulong new_xid = wnck_transient.get_xid();
  225.             if(old == null || new_xid != old.get_xid()) {
  226.                 transient = foreign_new(new_xid);
  227. -               debug("transient-for changed to = '%s'", transient.get("WM_CLASS"));
  228. +/*             debug("transient-for changed to = '%s'", transient.get("WM_CLASS"));*/
  229.             }
  230.         }
  231.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement