jverzani / gWidgets2

Rewrite of gWidgets
35 stars 9 forks source link

gcombobox errors with Gtk2 #33

Closed PatDicker closed 10 years ago

PatDicker commented 10 years ago

gcombobox with Gtk2 will not work for item strings less than 3 characters (not the case when using tcltk or the originial gWidgets packages with Gtk2). See 3 examples below where I increment the length of the strings to be presented in the gcombobox:

w=gwindow() gcombobox(c("a","b"),container=w) Error in [[.GObject(x, member, where = ) : Cannot find 'setWidthRequest' for classes GtkComboBox, GtkBin, GtkContainer, GtkWidget, GtkObject, GInitiallyUnowned, GObject, RGtkObject

gcombobox(c("aa","bb"),container=w) Error in [[.GObject(x, member, where = ) : Cannot find 'setWidthRequest' for classes GtkComboBox, GtkBin, GtkContainer, GtkWidget, GtkObject, GInitiallyUnowned, GObject, RGtkObject

gcombobox(c("aaa","bbb"),container=w) Object of class GComboBoxNoEntry

thanks Pat

jverzani commented 10 years ago

Sorry to be so tardy. This was addressed by putting in the proper call, setSizeRequest in this instance. Thanks for the feedback.