Selecting text in a gtkentry



Is there something special that needs to be done in order select text pasted
into a gtkentry from the clipboard?  I am unable to do so using the code below.
If I comment out the gtk_editable_paste_clipboard() line below and insert a
gtk_entry_set_text() line, I can select/highlight the constant character string
used in gtk_entry_set_text().  Can anybody figure out what I'm doing wrong?
Does anyone know if this is a bug in gtk?  Thanks in advance to those who
respond.



				-- Stupid Genius


/* Creating entry widget to input search string */
entry = gtk_entry_new();
gtk_signal_connect(GTK_OBJECT(entyr), "activate",
			GTK_SIGNAL_FUNC(find_string), GTK_WIDGET(entry));
gtk_box_pack_start(GTK_BOX(vbox), GTK_WIDGET(entry), FALSE, FALSE, 0);
gtk_editable_paste_clipboard(GTK_EDITABLE(GTK_ENTRY(entry)));
gtk_editable_select_region(GTK_EDITABLE(GTK_ENTRY(entry)), (gint) 0, (gint) -1);
gtk_widget_show(entry);




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]