Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with newest release of GTK? #22

Open
tmelliott opened this issue Jun 7, 2017 · 1 comment
Open

Problem with newest release of GTK? #22

tmelliott opened this issue Jun 7, 2017 · 1 comment

Comments

@tmelliott
Copy link
Contributor

tmelliott commented Jun 7, 2017

Using the latest version of RGtk2 (2.20.33) for R 3.4.0 the following happens:

library(gWidgets2)
w = gwindow()
g = ggroup(cont=w)
gedit("hello", cont=g)
## Error in `[.enums`(GtkStateType, 1) : Enum values must be strings

Some traceback, if that helps:

> traceback()
16: stop("Enum values must be strings")
15: `[.enums`(GtkStateType, 1)
14: GtkStateType[1]
13: .RGtkCall("S_gtk_widget_modify_text", object, state, color, PACKAGE = "RGtk2")
12: method(obj, ...)
11: widget$modifyText(GtkStateType[1], NULL)
10: clear_init_txt()
9: set_value(text)
8: .Object$initialize(...)
7: initialize(value, ...)
6: initialize(value, ...)
5: methods::new(def, ...)
4: GEdit$new(toolkit, text = text, width = width, coerce.with = coerce.with, 
       initial.msg = initial.msg, handler = handler, action = action, 
       container = container, ...)
3: .gedit.guiWidgetsToolkitRGtk2(toolkit, text = text, width = width, 
       coerce.with = coerce.with, initial.msg = initial.msg, handler = handler, 
       action = action, container = container, ...)
2: .gedit(toolkit, text = text, width = width, coerce.with = coerce.with, 
       initial.msg = initial.msg, handler = handler, action = action, 
       container = container, ...)
1: gedit("hello", cont = g)

If I install the previous version of RGtk2 (2.20.31), it works.

Not yet sure if directly related to this package, or elsewhere, but I'm hoping you'll have a better idea of the source than me.

@jverzani
Copy link
Owner

I need to clear out #24 and then release a new version on CRAN. I think this change was checked in to master if you wish to try on devtools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants