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

I often use ^D to delete the character following the caret. With lostirc,
this opens the DCC window, which is a bit annoying...

Two possible fixes: change the default shortcut, or allow editable shortcuts
(subject to GTK configuration). The attached patch does the latter, although
maybe both are needed.

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Burn less waste. Use less packaging. Waste less.     USE FEWER RESOURCES.

It is better to wear out than to rust out.
--- lostirc-0.4.6.orig/src/gtkmm/MainWindow.cpp
+++ lostirc-0.4.6/src/gtkmm/MainWindow.cpp
@@ -23,6 +23,7 @@
 #include <gtkmm/box.h>
 #include <gtkmm/messagedialog.h>
 #include <gtkmm/actiongroup.h>
+#include <gtk/gtkaccelmap.h>
 #include <gdk/gdkkeysyms.h>
 #include <sigc++/retype_return.h>
 #include "DCCList.h"
@@ -54,6 +55,7 @@
           move(x, y);
     
     setupMenus();
+    gtk_accel_map_load ((App->home + "/.lostirc/accel.scm").c_str ());
     initializeTagTable();
     Gtk::VBox *vbox = manage(new Gtk::VBox());
 
@@ -99,6 +101,7 @@
         _app.options.window_y = y;
     }
 
+    gtk_accel_map_save ((App->home + "/.lostirc/accel.scm").c_str ());
     AppWin = 0;
 }
 

Reply via email to