Package: lostirc
Version: 0.4.6-2
Severity: minor
Tags: patch

I noticed that Ctrl+PageUp and Ctrl-PageDown cause *two* tab switches when
one of the tabs (in the main window) has the input focus. The attached patch
fixes this.

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Output *more* particulate pollutants.      BUFFER AGAINST GLOBAL WARMING.

A man forgives only when he is in the wrong.
--- lostirc-0.4.6.orig/src/gtkmm/MainNotebook.h
+++ lostirc-0.4.6/src/gtkmm/MainNotebook.h
@@ -30,6 +30,8 @@
 public:
     MainNotebook();
 
+    virtual bool on_key_press_event(GdkEventKey* e);
+
     Tab* addTab(Tab::Type type, const Glib::ustring& name, ServerConnection 
*conn);
     Tab* getCurrent(ServerConnection *conn = 0);
     Tab* findTab(const Glib::ustring& name, ServerConnection *conn, bool 
findInActive = false);
--- lostirc-0.4.6.orig/src/gtkmm/MainNotebook.cpp
+++ lostirc-0.4.6/src/gtkmm/MainNotebook.cpp
@@ -230,3 +230,8 @@
         tab->getText().setFont(_fontdesc);
     }
 }
+
+bool MainNotebook::on_key_press_event(GdkEventKey* e)
+{
+    return true;
+}

Reply via email to