[Kazehakase-cvs] CVS update: kazehakase/data/ext/ruby/kz/actions

Back to archive index

Kouhei Sutou kous****@users*****
Thu May 25 00:06:48 JST 2006


Index: kazehakase/data/ext/ruby/kz/actions/Makefile.am
diff -u kazehakase/data/ext/ruby/kz/actions/Makefile.am:1.5 kazehakase/data/ext/ruby/kz/actions/Makefile.am:1.6
--- kazehakase/data/ext/ruby/kz/actions/Makefile.am:1.5	Tue May 23 17:40:32 2006
+++ kazehakase/data/ext/ruby/kz/actions/Makefile.am	Thu May 25 00:06:48 2006
@@ -9,6 +9,7 @@
 	ruby-dialog.rb \
 	view-pdf-as-image.rb \
 	view-pdf-as-image.erb \
+	move-tab-into-new-mini-window.rb \
 	text-link.rb
 
 EXTRA_DIST = \
Index: kazehakase/data/ext/ruby/kz/actions/move-tab-into-new-mini-window.rb
diff -u /dev/null kazehakase/data/ext/ruby/kz/actions/move-tab-into-new-mini-window.rb:1.1
--- /dev/null	Thu May 25 00:06:48 2006
+++ kazehakase/data/ext/ruby/kz/actions/move-tab-into-new-mini-window.rb	Thu May 25 00:06:48 2006
@@ -0,0 +1,13 @@
+def act_move_tab_into_new_mini_window(action, group, kz)
+  page = kz.current_page
+  if page and kz.activate_action("NewWindow")
+    new_kz = Kz::Window.list.last
+    new_kz.resize(500, 600)
+    new_kz.move_tab(page)
+  end
+end
+
+def act_move_tab_into_new_mini_window_config(config, kz)
+  config[:label] = N_("Move tab into new mini window")
+  config[:tooltip] = N_("move the current tab into new mini window")
+end
Index: kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb
diff -u kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb:1.1 kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb:1.2
--- kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb:1.1	Fri Apr 28 23:21:00 2006
+++ kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb	Thu May 25 00:06:48 2006
@@ -3,8 +3,7 @@
   if page and page.location
     uri = page.location
     page.load_url(uri.gsub(/#.*$/, ''))
-    reload = kz.actions.get_action("Reload")
-    reload.activate if reload
+    kz.activate_action("Reload")
   end
 end
 


More information about the Kazehakase-cvs mailing list
Back to archive index