scratch on windows when resize a dialog window #173

Closed
glurp opened this Issue Jul 16, 2013 · 3 comments

3 participants

@glurp

With this dependencies :
pkg-config-1.1.4
glib2-2.0.2
gio2-2.0.2
atk-2.0.2
cairo-1.12.6
pango-2.0.2
gdk_pixbuf2-2.0.2
gdk3-2.0.2
gtk3-2.0.2
gtksourceview3-2.0.0

I get ruby scratch when resizing dialog :

GLib:ERROR:gmain.c:3057:g_main_dispatch: assertion failed: (current->dispatching_sources == &current_source_link)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

@kou
Ruby-GNOME2 Project member

It seems that it is a my cross-compiling problem.
Please wait a new version. I will rebuild GTK+ binaries for the new release. It may fix the problem.

@myokoym
Ruby-GNOME2 Project member

This is a sample code that replicates the problem.

#!/usr/bin/env ruby

#require "gtk2" # No Problem
require "gtk3"

window = Gtk::Window.new
# gtk2 style (deprecated in gtk3)
#button = Gtk::Button.new("Button1")        # Pass
#button = Gtk::Button.new("_Button1")       # Pass
#button = Gtk::Button.new("Button1", true)  # Pass
#button = Gtk::Button.new("_Button1", true) # Fail
# gtk3 style
#button = Gtk::Button.new(:label => "Button1")     # Pass
#button = Gtk::Button.new(:label => "_Button1")    # Pass
#button = Gtk::Button.new(:mnemonic => "Button1")  # Pass
button = Gtk::Button.new(:mnemonic => "_Button1") # Fail
window.add(button)
window.signal_connect("destroy") {Gtk.main_quit}
window.show_all
Gtk.main
@myokoym
Ruby-GNOME2 Project member

I found a workaround.
We can create the following file.

> type C:\Ruby200\lib\ruby\gems\2.0.0\gems\gdk3-2.0.2-x86-mingw32\vendor\local\etc\gtk-3.0\settings.ini
[Settings]
gtk-auto-mnemonics = 1

see:
https://developer.gnome.org/gtk3/3.8/GtkSettings.html#GtkSettings--gtk-auto-mnemonics
https://developer.gnome.org/gtk3/3.9/GtkSettings.html#GtkSettings--gtk-auto-mnemonics

@glurp glurp closed this Dec 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment