Hi,
Could you download the development version and apply the attached patch
against it ? I'm not quite sure it really does what you're expecting...
Download the development version with:
svn checkout http://svn.gnome.org/svn/fantasdic/trunk
Then patch it with:
patch -p0 < keep_above.patch
Thanks,
Mathieu Blondel
Dmitry V. Rutsky wrote:
On Wednesday 24 October 2007 08:32:05 pm Mathieu Blondel wrote:
Hi,
This message is about the bug that you filled, "would be nice to have
option to raise fantasdic window when appropriate", in Fantasdic.
Would an option "View > Keep window above other windows" (checked/not
checked) be a solution to your problem? Like the "scan clipboard"
option, this option would be saved in the preferences.
It would, that's probably the best way to do that.
Regards,
Index: lib/fantasdic/ui/main_app.rb
===================================================================
--- lib/fantasdic/ui/main_app.rb (révision 259)
+++ lib/fantasdic/ui/main_app.rb (copie de travail)
@@ -416,6 +416,7 @@
def load_misc_preferences
@global_actions["ScanClipboard"].active = @prefs.scan_clipboard
+ @global_actions["KeepAbove"].active = @prefs.keep_above
end
def load_preferences
@@ -461,6 +462,7 @@
def save_misc_preferences
@prefs.scan_clipboard = @global_actions["ScanClipboard"].active?
+ @prefs.keep_above = @global_actions["KeepAbove"].active?
end
def save_preferences
@@ -963,6 +965,10 @@
@toolbar.visible = @global_actions["Toolbar"].active?
end
+ on_toggle_keep_above = Proc.new do
+ @main_app.keep_above = @global_actions["KeepAbove"].active?
+ end
+
# [[name, stock_id, label, accel, tooltip, proc, is_active],... ]
toggle_actions = [
["ScanClipboard", nil, _("Scan clipboard"), "<ctrl><shift>S",
@@ -972,7 +978,9 @@
["Statusbar", nil, _("_Statusbar"), nil, nil,
on_toggle_statusbar, true],
["Toolbar", nil, _("_Toolbar"), nil, nil, on_toggle_toolbar,
- true]
+ true],
+ ["KeepAbove", nil, _("_Keep above other windows"),
+ "<ctrl><shift>K", nil, on_toggle_keep_above, false]
]
@global_actions = Gtk::ActionGroup.new("Standard actions")
Index: data/fantasdic/ui/menus.xml
===================================================================
--- data/fantasdic/ui/menus.xml (révision 259)
+++ data/fantasdic/ui/menus.xml (copie de travail)
@@ -54,6 +54,8 @@
<menuitem action="MatchesSidepane"/>
<menuitem action="Statusbar"/>
<menuitem action="Toolbar"/>
+ <separator/>
+ <menuitem action="KeepAbove"/>
</menu>
<menu action="GoMenu">
<menuitem action="GoBack"/>