]> git.decadent.org.uk Git - videolink.git/commitdiff
Switched to gtkmm 2.4+ since gtkmm 2.0 is being removed from Debian.
authorBen Hutchings <ben@decadent.org.uk>
Sat, 7 Jul 2007 02:26:02 +0000 (02:26 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:58:13 +0000 (23:58 +0000)
Makefile
README
browser_widget.cpp
debian/control
generate_dvd.cpp
videolink.cpp

index 02a8030579a95f16fc063525b4ffb587a983bf28..e20d8c400302600f3b642a75b025b4d294b2bd9d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ CFLAGS := -ansi -Wall -Wunused -Wno-unused-parameter
 CPPFLAGS := -D_REENTRANT
 CXXFLAGS := -ansi -Wall -Wunused
 LDFLAGS := -lpthread                                                   \
-           $(shell pkg-config --libs gtkmm-2.0 $(mozilla)-gtkmozembed) \
+           $(shell pkg-config --libs gtkmm-2.4 $(mozilla)-gtkmozembed) \
            -Wl,-rpath -Wl,$(moz_lib_dir) -lexpat
 
 ifdef NDEBUG
@@ -74,7 +74,7 @@ install :
 
 .objs/browser_widget.% .objs/generate_dvd.% .objs/pixbufs.%               \
 .objs/temp_file.% .objs/vob_list.% .objs/videolink.% .objs/warp_pointer.% \
-    : CPPFLAGS += $(shell pkg-config --cflags gtkmm-2.0)
+    : CPPFLAGS += $(shell pkg-config --cflags gtkmm-2.4)
 
 .objs/browser_widget.% .objs/child_iterator.% .objs/link_iterator.%   \
 .objs/null_prompt_service.% .objs/style_sheets.% .objs/videolink.%    \
diff --git a/README b/README
index d7b003c3700e95ad7956fb943bd52560c18714da..a3147baf0b4c027f3da04ac22036b498417bab14 100644 (file)
--- a/README
+++ b/README
@@ -17,7 +17,7 @@ VideoLink depends on the following software:
 
 - dvdauthor
 - expat 1.x
-- Gtkmm 2.0
+- Gtkmm 2.4 or later
 - ffmpeg or mjpegtools
 - Mozilla 1.8 or later, or XULRunner
 - netpbm
index 7d640e5cfd358cfa6836a5b1335ec8a3c8e4e5b9..46d1fb5e0ba97706c4d72414b9dad053464c9046 100644 (file)
@@ -119,15 +119,15 @@ namespace
 {
     void browser_widget_signal_link_message_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -145,15 +145,15 @@ namespace
 
     void browser_widget_signal_js_status_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -171,15 +171,15 @@ namespace
 
     void browser_widget_signal_location_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -197,15 +197,15 @@ namespace
 
     void browser_widget_signal_title_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -224,15 +224,15 @@ namespace
     void browser_widget_signal_progress_callback(
        GtkMozEmbed * self, gint p0, gint p1, void * data)
     {
-       typedef SigC::Slot2<void, gint, gint> SlotType;
+       typedef sigc::slot<void, gint, gint> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(p0, p1, slot);
+                   (*static_cast<SlotType*>(slot))(p0, p1);
            }
            catch(...)
            {
@@ -251,15 +251,15 @@ namespace
     void browser_widget_signal_net_state_callback(
        GtkMozEmbed * self, const char * p0, gint p1, guint p2, void * data)
     {
-       typedef SigC::Slot3<void, const char *, gint, guint> SlotType;
+       typedef sigc::slot<void, const char *, gint, guint> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(p0, p1, p2, slot);
+                   (*static_cast<SlotType*>(slot))(p0, p1, p2);
            }
            catch(...)
            {
@@ -277,15 +277,15 @@ namespace
 
     void browser_widget_signal_net_start_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -303,15 +303,15 @@ namespace
 
     void browser_widget_signal_net_stop_callback(GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -330,17 +330,17 @@ namespace
     void browser_widget_signal_new_window_callback(
        GtkMozEmbed * self, GtkMozEmbed ** p0, guint p1, void * data)
     {
-       typedef SigC::Slot1<browser_widget *, guint> SlotType;
+       typedef sigc::slot<browser_widget *, guint> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
                {
                    if (browser_widget * result =
-                       (*(SlotType::Proxy)(slot->proxy_))(p1, slot))
+                       (*static_cast<SlotType*>(slot))(p1))
                    {
                        *p0 = result->gobj();
                        return;
@@ -367,15 +367,15 @@ namespace
     void browser_widget_signal_visibility_callback(
        GtkMozEmbed * self, gboolean p0, void * data)
     {
-       typedef SigC::Slot1<void, bool> SlotType;
+       typedef sigc::slot<void, bool> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(p0, slot);
+                   (*static_cast<SlotType*>(slot))(p0);
            }
            catch(...)
            {
@@ -394,15 +394,15 @@ namespace
     void browser_widget_signal_destroy_browser_callback(
        GtkMozEmbed * self, void * data)
     {
-       typedef SigC::Slot0<void> SlotType;
+       typedef sigc::slot<void> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   (*(SlotType::Proxy)(slot->proxy_))(slot);
+                   (*static_cast<SlotType*>(slot))();
            }
            catch(...)
            {
@@ -421,15 +421,15 @@ namespace
     gint browser_widget_signal_open_uri_callback(
        GtkMozEmbed * self, const char * p0, void * data)
     {
-       typedef SigC::Slot1<bool, const char *> SlotType;
+       typedef sigc::slot<bool, const char *> SlotType;
 
        if (Glib::ObjectBase::_get_current_wrapper((GObject *)self))
        {
            try
            {
-               if (SigC::SlotNode * const slot =
+               if (sigc::slot_base * const slot =
                    Glib::SignalProxyNormal::data_to_slot(data))
-                   return (*(SlotType::Proxy)(slot->proxy_))(p0, slot);
+                   return (*static_cast<SlotType*>(slot))(p0);
            }
            catch(...)
            {
index 4072ffe3642329310f4f517b2ee85d4a2d8510ac..375666c1a8746281286bb5943f178f592deb06e8 100644 (file)
@@ -2,7 +2,7 @@ Source: videolink
 Maintainer: Ben Hutchings <ben@decadent.org.uk>
 Section: graphics
 Priority: extra
-Build-Depends: debhelper (>=4), libboost-dev, libgtkmm2.0-dev, libxul-dev | mozilla-dev, libexpat1-dev
+Build-Depends: debhelper (>=4), libboost-dev, libgtkmm-2.4-dev, libxul-dev | mozilla-dev, libexpat1-dev
 Standards-Version: 3.7.2
 
 Package: videolink
index 2fa3388d6bb1e5c6b6e1e8d3c1835ba4d095b0cc..d695c8e2556b2fd03807322eff07d4669997dbb3 100644 (file)
@@ -288,7 +288,7 @@ void dvd_generator::generate_menu_vob(unsigned index,
                         argv, sizeof(argv)/sizeof(argv[0]),
                         Glib::OWNERSHIP_NONE),
                     Glib::SPAWN_STDOUT_TO_DEV_NULL,
-                    SigC::Slot0<void>(),
+                    sigc::slot<void>(),
                     0, 0,
                     &command_result);
     if (command_result != 0)
@@ -707,7 +707,7 @@ void dvd_generator::generate(const std::string & output_dir) const
                             Glib::OWNERSHIP_NONE),
                         Glib::SPAWN_SEARCH_PATH
                         | Glib::SPAWN_STDOUT_TO_DEV_NULL,
-                        SigC::Slot0<void>(),
+                        sigc::slot<void>(),
                         0, 0,
                         &command_result);
        if (command_result != 0)
index ca4193370fae8d379ec326b9f5504eb9d37dfd26..ef30510149905c0ce7a4f277cbbe68a9c57be934 100644 (file)
@@ -160,7 +160,8 @@ namespace
        add(browser_widget_);
        browser_widget_.show();
 
-       Glib::signal_idle().connect(SigC::slot(*this, &base_window::on_idle));
+       Glib::signal_idle().connect(
+           sigc::mem_fun(this, &base_window::on_idle));
     }
 
     bool base_window::on_idle()
@@ -187,7 +188,8 @@ namespace
        : base_window(frame_params),
          main_page_uri_(main_page_uri)
     {
-       signal_key_press_event().connect(SigC::slot(*this, &preview_window::on_key_press));
+       signal_key_press_event().connect(
+           sigc::mem_fun(this, &preview_window::on_key_press));
     }
 
     void preview_window::do_late_initialisation()
@@ -276,7 +278,7 @@ namespace
          finished_(false)
     {
        browser_widget_.signal_net_state().connect(
-           SigC::slot(*this, &conversion_window::on_net_state_change));
+           sigc::mem_fun(this, &conversion_window::on_net_state_change));
 
        add_menu(main_page_uri);
     }
@@ -963,7 +965,7 @@ int main(int argc, char ** argv)
        {
            preview_window window(frame_params, menu_url);
            window.show();
-           window.signal_hide().connect(SigC::slot(&Gtk::Main::quit));
+           window.signal_hide().connect(sigc::ptr_fun(Gtk::Main::quit));
            Gtk::Main::run();
            return EXIT_SUCCESS;
        }
@@ -971,7 +973,7 @@ int main(int argc, char ** argv)
        {
            conversion_window window(frame_params, menu_url, output_dir, encoder);
            window.show();
-           window.signal_hide().connect(SigC::slot(&Gtk::Main::quit));
+           window.signal_hide().connect(sigc::ptr_fun(Gtk::Main::quit));
            Gtk::Main::run();
            return window.is_finished() ? EXIT_SUCCESS  : EXIT_FAILURE;
        }