[gnote] Do not close main window when middle-click on link



commit 578d28b1c336b096cbdafa6360116d5f79becd3f
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Jan 11 15:32:20 2014 +0200

    Do not close main window when middle-click on link
    
    Fixes Bug 721852 and Bug 721853.

 src/notetag.cpp |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/notetag.cpp b/src/notetag.cpp
index 4130019..d67345a 100644
--- a/src/notetag.cpp
+++ b/src/notetag.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011,2013 Aurimas Cernius
+ * Copyright (C) 2011,2013-2014 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -207,14 +207,7 @@ namespace gnote {
       }
 
       get_extents (iter, start, end);
-      bool success = on_activate (*(editor.operator->()), start, end);
-
-      // Hide note if link is activated with middle mouse button
-      if (success && (button_ev->button == 2)) {
-        Glib::RefPtr<Gtk::Widget> widget = Glib::RefPtr<Gtk::Widget>::cast_static(sender);
-        widget->get_toplevel()->hide ();
-      }
-
+      on_activate (*(editor.operator->()), start, end);
       return false;
     }
     case GDK_KEY_PRESS:


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