title: gWidgets: Resize combobox to fit content
body: <p>I have created a GUI using gWidgets and RGtk2. A part of the GUI is a glayout with a set of gcomboboxes. These boxes are initially empty and gets populated once a file is imported.</p>
  
  <p>On mac with Gtk+ running through X11 the width of the comboboxes gets resized to fit the longest textstring in the combobox. On windows this doesn't happen and the comboboxes gets scrollbars to accomodate the long text strings (see pictures).</p>
  
  <p><img src="https://i.stack.imgur.com/HmHpj.png" alt="Combobox on Windows"></p>
  
  <p><img src="https://i.stack.imgur.com/pOhMQ.png" alt="Combobox on Mac"></p>
  
  <p>I have tried turning visibility off and on to force a redraw but the size stay fixed.</p>
  
  <p>Is there anyway to force the resizing on windows machines?</p>
  
  <p>The code for the container holding the relevant widgets are:</p>
  
  <pre><code>optionsBox &lt;- ggroup(cont=controlGroup)
  addSpring(optionsBox)
  options &lt;- glayout(cont=optionsBox, spacing=5, fill='y')
  optList &lt;- list()
  options[1, 1, anchor=c(1,0)] &lt;- 'Category:'
  options[1, 2, anchor=c(-1,0)] &lt;- optList$category &lt;- gcombobox(category, cont=options)
  options[2, 1, anchor=c(1,0)] &lt;- 'Order:'
  options[2, 2, anchor=c(-1,0)] &lt;- optList$order &lt;- gcombobox(order, cont=options)
  options[2, 3, anchor=c(1,0)] &lt;- optList$numeric &lt;- gcheckbox('numeric', checked=TRUE)
  options[3, 1, anchor=c(1,0)] &lt;- 'Plottype:'
  options[3, 2, anchor=c(-1,0)] &lt;- optList$plottype &lt;- gcombobox(c('Bar', 'Line'), cont=options)
  addSpring(optionsBox)
  </code></pre>
  
  <p>best wishes</p>
  
  <p>Thomas</p>