when clicking on link to open album in browser after generation, close dialog
authorgc <gc>
Wed, 26 Apr 2006 20:22:15 +0000 (20:22 +0000)
committergc <gc>
Wed, 26 Apr 2006 20:22:15 +0000 (20:22 +0000)
bin/booh

index 58b437fc549717a2697f90fb0c80cb54ae0d47ed..7abbbfc655799225224f3e04226f5947690542da 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -1894,7 +1894,11 @@ def show_popup(parent, msg, *options)
     if options[0] && options[0][:linkurl]
         linkbut = Gtk::Button.new('')
         linkbut.child.markup = "<span foreground=\"#00000000FFFF\" underline=\"single\">#{options[0][:linkurl]}</span>"
     if options[0] && options[0][:linkurl]
         linkbut = Gtk::Button.new('')
         linkbut.child.markup = "<span foreground=\"#00000000FFFF\" underline=\"single\">#{options[0][:linkurl]}</span>"
-        linkbut.signal_connect('clicked') { open_url(options[0][:linkurl] + '/index.html' ) }
+        linkbut.signal_connect('clicked') {
+            open_url(options[0][:linkurl] + '/index.html')
+            dialog.response(Gtk::Dialog::RESPONSE_OK)
+            set_mousecursor_normal
+        }
         linkbut.relief = Gtk::RELIEF_NONE
         linkbut.signal_connect('enter-notify-event') { set_mousecursor(Gdk::Cursor::HAND2, linkbut); false }
         linkbut.signal_connect('leave-notify-event') { set_mousecursor(nil, linkbut); false }
         linkbut.relief = Gtk::RELIEF_NONE
         linkbut.signal_connect('enter-notify-event') { set_mousecursor(Gdk::Cursor::HAND2, linkbut); false }
         linkbut.signal_connect('leave-notify-event') { set_mousecursor(nil, linkbut); false }