Re: Translation domains
I'm working on an application, and I keep getting messages from my GtkEntry and GtkTextArea widgets Input method XXX should not use GTK'S translation domain gtk20 What version of GTK+ are you using? What is XXX? Have you installed some 3rd-party input method module for GTK+? Where/How to I set/change the translation domain? In the source file for the input method in question. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
key press events SUPR
hi all: I am working with gnome-ruby today and i have a question common in all GTK APIS. are they always the key codes the same in all platforms?? I want to catch the SUPR button @window1.signal_connect(key-press-event) do |widget,event| if event.keyval==65535 puts be happy my friend you push the supr keyboard button! end end are there MACROS to solves this problems??? Regards. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: key press events SUPR
Hi, Martin. From the GTK+ documentation for GdkEventKey: guint keyval; the key that was pressed or released. See the gdk/gdkkeysyms.h header file for a complete list of GDK key codes. On Thu, 2008-04-17 at 04:56 -0500, [EMAIL PROTECTED] wrote: hi all: I am working with gnome-ruby today and i have a question common in all GTK APIS. are they always the key codes the same in all platforms?? I want to catch the SUPR button @window1.signal_connect(key-press-event) do |widget,event| if event.keyval==65535 puts be happy my friend you push the supr keyboard button! end end are there MACROS to solves this problems??? Regards. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: key press events SUPR
Alexander Semenov escribió: Hi, Martin. From the GTK+ documentation for GdkEventKey: guint keyval; the key that was pressed or released. See the gdk/gdkkeysyms.h header file for a complete list of GDK key codes. Thanks: puts Gdk::Keyval::GDK_Delete @view_venta.signal_connect(key-press-event) do |widget,event| if event.keyval==Gdk::Keyval::GDK_Delete selection = @view_venta.selection borrar_l=[] selection.selected_each do |model, path, iter| borrar_l (Gtk::TreeRowReference.new(model,path)) #model.remove(iter) end borrar_l.each do |rowref| (path = rowref.path) and @list_store_venta.remove(@list_store_venta.get_iter(path)) end end end ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Height of text row in TreeView
Hi I have a TreeView with two columns one pixbuf and one text. when i have large text in text column the height of text column never increase beyond height of pixbuf. If there is no pixbuf rendered height never increases beyond one line. Is this issue with GtkCellRendererText? Is there any simple way to achieve this so that we get correct cell height. Thanx for your time. Regards, Amol. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: 答复: A question about GTK Scale
Hi, No, you should not use closed loop for GTK application when you expect responses. Use gtk timeout mechanism instead of the dead while loop with sleep. Try that, I am quite sure that would help. Yours faithfully, Alvis Koon On 16/04/2008, Ke Jin [EMAIL PROTECTED] wrote: The problem is solved. Thanks! But it is still a little strange that I have tried the while(gtk_events_pending()) gtk_main_iteration(); before which didn't work. But after I changed: slider = gtk_vscale_new_with_range(0,1000,0.1); to GtkObject *adj1; adj1 = gtk_adjustment_new (0.0, 0.0, 1001, 0.1, 1.0, 1.0); slider = gtk_vscale_new (GTK_ADJUSTMENT (adj1)); it did work. Any idea why? -邮件原件- 发件人: Christopher Backhouse [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月16日 9:40 收件人: Ke Jin 抄送: gtk-app-devel-list@gnome.org 主题: Re: A question about GTK Scale Perhaps it takes 2 iterations of the main loop for the vscale to update. What happens if you try while(gtk_events_pending()) gtk_main_iteration(); instead? Ke Jin wrote: Dear All, I have a VScale in my interface and I created button named Play that once the button is clicked, the scale will move automatically. Below is the function connected to the button. And it performed strangely. The scale was not updated every iteration of the loop, which means the value of the scale changed from 0 to 2 then to 4 then 6and jumped over 1,3,5... Does anyone have any idea why this happened? void playClick(GtkWidget *widget, VScale *slider) { double interval = 1; double currentTime = gtk_range_get_value((GtkRange*)(slider)); while(currentTime=20) { currentTime += interval; usleep(100); printf(current Time: %f\n,currentTime); gtk_range_set_value((GtkRange*)(gtkE-slider),currentTime); gtk_main_iteration(); } } Many Thanks, Ke ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
DnD into a read-only textview
Hi, in a dictionary application I have a GtkEntry to enter some text and a GtkTextView to display any results. The GtkTextView is read-only (gtk_text_view_set_editable(textview, FALSE)) because it's only used to display search results. And therefore it can't be used as a target for Drag and Drop. This makes sense generally as you don't want to drag text into something read-only. But anyway I would like to enable Drag and Drop for this widget because it would be just more convenient to drag into the much bigger textview area than into the small GtkEntry area. Is there any trick to get around the problem? Is there any way I can enable Drag and Drop for the GtkTextView even it is disabled for a sane default? Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.key ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list