On Wed, Aug 06, 2008 at 03:43:14PM +0200, Vincent Legout wrote: > Hi, > > If Ken doesn't want to work on this bug anymore, I would like to. > I have already packaged it for Ubuntu, I would like to do the same for > Debian.
By all means. Here's a patch that adds support for editing application associations (the real reason why I want to use assogiate in the first place.) Take a look at the packaging I've done so far at http://lingcog.iit.edu/~bloom/assogiate/, maybe you can use other stuff like the .desktop file that puts assogiate in the gnome control center. --Ken -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/
diff -uNr assogiate-0.2.1.orig/configure.ac assogiate-0.2.1.ken/configure.ac
--- assogiate-0.2.1.orig/configure.ac 2007-06-12 14:01:53.000000000 -0500
+++ assogiate-0.2.1.ken/configure.ac 2007-06-24 15:31:54.000000000 -0500
@@ -29,6 +29,7 @@
gtkmm-2.4 >= 2.6.0
libxml++-2.6
gnome-vfsmm-2.6
+ eel-2.0
])
PKG_CHECK_EXISTS([libxml++-2.6 >= 2.14.0],
diff -uNr assogiate-0.2.1.orig/src/main.cc assogiate-0.2.1.ken/src/main.cc
--- assogiate-0.2.1.orig/src/main.cc 2007-06-03 13:30:26.000000000 -0500
+++ assogiate-0.2.1.ken/src/main.cc 2007-06-24 11:03:29.000000000 -0500
@@ -77,7 +77,11 @@
#endif
Gtk::Main kit(argc, argv, context);
- std::locale::global(std::locale(std::setlocale(LC_ALL, NULL)));
+ try{
+ std::locale::global(std::locale(std::setlocale(LC_ALL, NULL)));
+ }catch(std::runtime_error const & e){
+ std::locale::global(std::locale::classic());
+ }
gtk_window_set_default_icon_name("assogiate"); // unwrapped
Gtk::AboutDialog::set_email_hook(sigc::ptr_fun(&activate_email));
Gtk::AboutDialog::set_url_hook(sigc::ptr_fun(&activate_url));
diff -uNr assogiate-0.2.1.orig/src/type-dialog.cc assogiate-0.2.1.ken/src/type-dialog.cc
--- assogiate-0.2.1.orig/src/type-dialog.cc 2007-06-11 23:19:56.000000000 -0500
+++ assogiate-0.2.1.ken/src/type-dialog.cc 2007-06-24 15:37:34.000000000 -0500
@@ -33,6 +33,9 @@
#include <gtkmm/scale.h>
#include <gtkmm/spinbutton.h>
#include <gtkmm/stock.h>
+extern "C"{
+#include <eel/eel-mime-application-chooser.h>
+}
/******************************************************************************/
namespace assoGiate {
@@ -241,6 +244,10 @@
m_xml_view.signal_remove().connect(sigc::mem_fun
(*this, &TypeDialog::on_xml_changed));
m_notebook.append_page(m_xml_view, _("XML elements"));
+
+ m_mime_application_view = Glib::wrap(
+ eel_mime_application_chooser_new("",initial_type->get_full_name().c_str()));
+ m_notebook.append_page(*m_mime_application_view, _("Open With"));
vbox->pack_start(m_buttons, false, false);
@@ -266,6 +273,7 @@
delete m_category_widget;
delete m_target_type;
delete m_fixed_type;
+ delete m_mime_application_view;
}
ustring
diff -uNr assogiate-0.2.1.orig/src/type-dialog.hh assogiate-0.2.1.ken/src/type-dialog.hh
--- assogiate-0.2.1.orig/src/type-dialog.hh 2007-06-11 23:19:56.000000000 -0500
+++ assogiate-0.2.1.ken/src/type-dialog.hh 2007-06-24 11:15:06.000000000 -0500
@@ -120,6 +120,7 @@
RefPtr<Gtk::ListStore> m_xml_store;
EditableListView m_alias_view, m_superclass_view,
m_glob_view, m_magic_view, m_xml_view;
+ Gtk::Widget* m_mime_application_view;
}; /* class TypeDialog */
signature.asc
Description: Digital signature

