set urgency hint, to draw user's attention after using the backend
authorgc <gc>
Sat, 17 May 2008 14:10:05 +0000 (14:10 +0000)
committergc <gc>
Sat, 17 May 2008 14:10:05 +0000 (14:10 +0000)
INSTALL
bin/booh

diff --git a/INSTALL b/INSTALL
index 2848342..30fbd46 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1,6 +1,6 @@
 This software requires for compiling:
 
-- gtk >= 2.6
+- gtk >= 2.8
 - devel of gtk
 - ruby
 - ruby-gettext >= 0.8.0
index 62b04f4..04b53df 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -3393,7 +3393,10 @@ Are you sure you want to continue?")), { :okcancel => true })
                      "#{opt432 ? '--optimize-for-32' : ''} --made-with '#{madewith}' --index-link '#{indexlink}' #{additional_booh_options}",
                      utf8(_("Please wait while scanning source directory...")),
                      'full scan',
-                     { :closure_after => proc { open_file_user(configskel) } })
+                     { :closure_after => proc {
+                             open_file_user(configskel)
+                             $main_window.urgency_hint = true
+                         } })
     end
 end
 
@@ -3603,6 +3606,7 @@ def properties
                      { :closure_after => proc {
                              open_file($filename)
                              $modified = true
+                             $main_window.urgency_hint = true
                          } })
     else
         #- select_theme merges global variables, need to return to current choices
@@ -3623,6 +3627,7 @@ def merge_current
                          open_file($filename)
                          $albums_tv.selection.select_path(sel[0])
                          $modified = true
+                         $main_window.urgency_hint = true
                      } })
 end
 
@@ -3639,6 +3644,7 @@ def merge_newsubs
                          open_file($filename)
                          $albums_tv.selection.select_path(sel[0])
                          $modified = true
+                         $main_window.urgency_hint = true
                      } })
 end
 
@@ -3657,6 +3663,7 @@ def merge
                  { :closure_after => proc {
                          open_file($filename)
                          $modified = true
+                         $main_window.urgency_hint = true
                      } })
 end
 
@@ -4025,6 +4032,7 @@ Click to view it in your browser:") % $xmldoc.root.attributes['destination']),
                              $redo_tb.sensitive = $redo_mb.sensitive = false
                              save_current_file
                              $generated_outofline = true
+                             $main_window.urgency_hint = true
                          }})
     }
     $view_wa.signal_connect('activate') {
@@ -4541,20 +4549,26 @@ def create_main_window
 end
 
 
-handle_options
+if str = Gtk.check_version(2, 8, 0)
+    puts "This program requires GTK+ 2.8.0 or later"
+    puts str
+    exit
+end
 
 
+handle_options
 Thread.abort_on_exception = true
-
 read_config
 
 Gtk.init
 create_main_window
+
 check_config
 
 if ARGV[0]
     open_file_user(ARGV[0])
 end
+
 Gtk.main
 
 write_config