Re: How to set the size of a combo box?

2017-10-08 Thread Eric Cashon via gtk-app-devel-list
Hi Lars, There are a few things that you can try to see if you can get the combo box to format how you want it. The first is to create the combo with gtk_combo_box_new_with_model(). That way you can setup your cell renderer and be able to set properties of how the combo box is going to be

How to set the size of a combo box?

2017-10-08 Thread Lars Paulsen
Hello All, I have created a combo box and it is nicely displayed in my window. But it always takes the full window size. I would like to limit the size in that way, that it always takes 1 row height or better say the height of the text line or font size (1em in CSS encoding). I have only

Re: Populating A Combo Box With Integers In Hex

2013-12-07 Thread David Nečas
On Sat, Dec 07, 2013 at 05:54:23PM +, Tristian Celestin wrote: > I have a GtkListStore that contains 4 columns of unsigned integers > (G_TYPE_UINT). I would like to display the second column of integers > in a GtkComboBoxText widget, and I would like the integers to be > displayed in Base 12. 

Populating A Combo Box With Integers In Hex

2013-12-07 Thread Tristian Celestin
combo box for columns of G_TYPE_STRING: gtk_combo_box_set_model(GTK_COMBO_BOX(self->priv->comboboxtext1),     GTK_TREE_MODEL(device_store)); gtk_combo_box_set_id_column(GTK_COMBO_BOX(self->priv->comboboxtext1), 1); Is my only solution to add another column to the list store containing

Combo-box with scrollbar as the COMBO-BOX in LibreOffice that have in the list of FONTS

2012-06-17 Thread Mariano Gaudix
COMBOBOX with SCROLLBAR Excuse me for my question I am creating a combo-box with scrollbar with GTK 3.0 and VALA (gtk) . .as the COMBO-BOX in LibreOffice that have in the list of FONTS .. GTK 3.0 have not a COMBO-BOX with scrollbar

Re: Slow combo box when adding 500 rows

2012-05-25 Thread Osmo Antero
Re-hello, Just to round up, I installed LinuxMint 13 (with Cinnamon Desktop), and the combo box loads very, very fast on this installation, with both gtk2 and gtk3. This is a huge difference compared to my Ubuntu 12.04 partition. I tried to fix Ubuntu by upgrading its "linux 3.2.generi

Re: Slow combo box when adding 500 rows

2012-05-25 Thread Osmo Antero
. All well. Kindly Osmo Moma Antero On Thu, May 24, 2012 at 10:14 PM, Michael Cronenworth wrote: > Osmo Antero wrote: >> Adding rows to a combo box with a GtkListStore is immensely slow. >> Is it right that adding 500 rows can take upto 10 seconds and the GUI >> freezes? >

Re: Slow combo box when adding 500 rows

2012-05-24 Thread Michael Cronenworth
Osmo Antero wrote: > Adding rows to a combo box with a GtkListStore is immensely slow. > Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have similar hardware but with the NVIDIA driver so it only freezes for about 2 seconds on my system. [snip] > Wha

Slow combo box when adding 500 rows

2012-05-24 Thread Osmo Antero
Hello, Adding rows to a combo box with a GtkListStore is immensely slow. Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have also tested gtk_combo_box_text_new_with_entry() and it is equally slow. Here is a complete test code based on gtk 3.0: http

GTK Combo Box focus handling

2009-10-16 Thread Ivan Baldo
Hello. I need to receive the focus-in-event of a GTK Combo Box but didn't found the way to do that yet after trying various things. I have other widgets (entries, spin buttons, check boxes, radio buttons) and I have no problems with those, only with the combo box. Something si

treeview combo box - multi select

2007-11-13 Thread dhk
When using a combo box in a treeview, how can it be configured so the user can select one or more items in the glist? Thanks, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: combo box

2006-09-11 Thread Lance Dillon
I would try the "changed" signal of GtkComboBox: http://developer.gnome.org/doc/API/2.0/gtk/GtkComboBox.html#GtkComboBox-changed - Original Message From: shibu Alampatta <[EMAIL PROTECTED]> To: gtk-app-devel-list@gnome.org Sent: Monday, September 11, 2006 7:27:56 AM Su

combo box

2006-09-11 Thread shibu Alampatta
i'm using a combo box and on selection of a particular item from the drop down list i need to do some processing depending on the selection. which signal i need to use for this purpose, i tried with selection_get signal . it's not working. pls help me. Thks in adv

Re: gtk-2.8.17: combo box: width calculated incorrectly?

2006-05-15 Thread Yeti
On Mon, May 15, 2006 at 12:16:22PM +0200, Felix Kater wrote: > I am using gtk-2.8.17/win32. I've made a combo box with about 30 entries, > most just text, some lines like "**" (a > string of asterisks). > > At runtime when I open

gtk-2.8.17: combo box: width calculated incorrectly?

2006-05-15 Thread Felix Kater
Hi, I am using gtk-2.8.17/win32. I've made a combo box with about 30 entries, most just text, some lines like "**" (a string of asterisks). At runtime when I open the box I've noticed that the combo box adds more extra space to the rig

Re: question about combo box

2006-02-09 Thread Gus Koppel
Georg Fritzsche wrote: > >>I have a question about GtkcomboBox > >>You know,every combobox have a GList which stores > >>some optional item. > >>My problem is about the GList. > >>When I click the triangle to pull down the list, > >> and move my mouse to select item, > >>

Re: question about combo box

2006-02-09 Thread Georg Fritzsche
Gus Koppel wrote: > yeajchao wrote: > > >>I have a question about GtkcomboBox >>You know,every combobox have a GList which stores >>some optional item. >>My problem is about the GList. >>When I click the triangle to pull down the list, >> and move my mouse to select item,

Re: question about combo box

2006-02-09 Thread Gus Koppel
yeajchao wrote: > I have a question about GtkcomboBox > You know,every combobox have a GList which stores > some optional item. > My problem is about the GList. > When I click the triangle to pull down the list, > and move my mouse to select item, > the highlight

question about combo box

2006-02-08 Thread yeajchao
Hello all First,I apologize for my terribly poor English I have a question about GtkcomboBox You know,every combobox have a GList which stores some optional item. My problem is about the GList. When I click the triangle to pull down the list, and move my mouse to selec

Re: Clear a text combo box

2006-01-06 Thread Christian Neumair
Am Donnerstag, den 05.01.2006, 16:34 -0300 schrieb Juan Pablo: > What is the way for removing all items in a combo box? > If it is iterating gtk_combo_box_remove, how do i get the number of > items it has? You'll have to peek the combo box model data. You can fetch t

Clear a text combo box

2006-01-05 Thread Juan Pablo
Hi list! What is the way for removing all items in a combo box? If it is iterating gtk_combo_box_remove, how do i get the number of items it has? Thanks! Saludos, Juan Pablo. ___ 1GB gratis

RE: combo box with some preset

2005-06-30 Thread Joshua A. Andler
> > Otherwise, well copy code of spin button, and write > > a new widget, but deriving from combo, instead of > > entry. combo-spin! > > Maybe simpler - without changing gtk code: > > Put the combo in a table of 2x2 (rowspan 2) > > Put two buttons in the remaining 2 boxes with up and down button

Re: combo box with some preset

2005-06-30 Thread John Coppens
On Wed, 29 Jun 2005 11:22:24 -0700 (PDT) Muthiah Annamalai <[EMAIL PROTECTED]> wrote: > > Otherwise, well copy code of spin button, and write > a new widget, but deriving from combo, instead of > entry. combo-spin! Maybe simpler - without changing gtk code: Put the combo in a table of 2x2 (row

Strange combo box

2005-06-17 Thread ramare
Dear all, I have a smmoth combo_box, created withthe_one = gtk_combo_box_new_text(); I fill it with gtk_combo_box_append_text( GTK_COMBO_BOX( the_one ), nom); And what I get is indeed a combo_box, but, but All items are on alist (that's normal) The background of this

RE: Clearing combo box

2005-04-04 Thread vishwahg
05, 2005 1:38 AM To: gtk-app-devel-list@gnome.org Subject: Clearing combo box Hi I have a combo box that I want to clear it (remove all the items) and add new items to it (I am using C) here is the code I tried but it didn't work, gtk_combo_box_set_model(Combo,NULL); gtk_combo_box_insert_text

Re: Clearing combo box

2005-04-04 Thread Hubert Sokołowski
On Mon, 4 Apr 2005 23:26:59 +0300 regatta <[EMAIL PROTECTED]> wrote: > But I still not able to understand, gtk_combo_box_remove_text is to > remove one item only > > do you mean I have to use it with loop to remove all items ? yes, until gtk_combo_box_get_active returns -1 > > also gtk_combo_bo

Re: Clearing combo box

2005-04-04 Thread regatta
AIL PROTECTED]> wrote: > On Mon, 4 Apr 2005 23:07:51 +0300 > regatta <[EMAIL PROTECTED]> wrote: > > > Hi > > > > I have a combo box that I want to clear it (remove all the items) and > > add new items to it (I am using C) here is the code I tried but it >

Re: Clearing combo box

2005-04-04 Thread Hubert Sokołowski
On Mon, 4 Apr 2005 23:07:51 +0300 regatta <[EMAIL PROTECTED]> wrote: > Hi > > I have a combo box that I want to clear it (remove all the items) and > add new items to it (I am using C) here is the code I tried but it > didn't work, > > gt

Clearing combo box

2005-04-04 Thread regatta
Hi I have a combo box that I want to clear it (remove all the items) and add new items to it (I am using C) here is the code I tried but it didn't work, gtk_combo_box_set_model(Combo,NULL); gtk_combo_box_insert_text (Combo,0, _("All1")); Anyone can help me please ? -