Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-21 Thread John Cupitt
On 6/22/05, Colossus <[EMAIL PROTECTED]> wrote: > I have a dialog with a Gtk_entry and a button. I want to > display a GtkFileChooserDialog when the user pushes the > button from the GtkDialog; the choosen path should be > displayed into the Gtk entry. How can I achieve this ? Perhaps: http://dev

Question about draw line in a image

2005-06-21 Thread H. Yao
Hi all, I load a image by "gtk_gtk_image_new_from_file()". I want to draw a line(or other things) on the image. How can I achieve this? Best regards, Hui ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnom

Calling GTkFileChooserDialog from a GtkDialog

2005-06-21 Thread Colossus
Hi, I have a dialog with a Gtk_entry and a button. I want to display a GtkFileChooserDialog when the user pushes the button from the GtkDialog; the choosen path should be displayed into the Gtk entry. How can I achieve this ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.source

gtk_entry

2005-06-21 Thread srinivas
hi; i have a widget show problem. i have a window with entry widget. i have a for loop to change the entry content. now when i give the gtk_widget_show (win_name),the window is displaying after the completion of loop. but first i want to display win_name and i want to track the changes in entry.

Fwd: Using GtkTextTags with Cursive script like Arabic

2005-06-21 Thread Gaurav Jain
Hi, I sent this query to the i18list, but received no response. Maybe it is more of a generic issue with GtkTextTags, so I thought I will post it to this list. Please do let me know if you have any comments on this problem. Thanks, Gaurav -- I'm trying to allow rich-text editing in a GtKTe

Re: gtk_entry display val

2005-06-21 Thread srinivas
hi all; according to your suggestion i can use spinbutton, but can i display the spinbutton with out arrows. thanks for reply; srinivas. On Tue, 2005-06-21 at 19:21, srinivas wrote: > hi ; > > i want to display int values in gtk_entry widget; > > gchar data=(gchar *)malloc(sizeof(gc

Re: 100 Different Colors

2005-06-21 Thread Kevin DeKorte
Also c.green = (i/99.0) * G_MAXUINT16; Might work as well. Kevin On Tuesday 21 June 2005 02:08 pm, Kevin DeKorte wrote: > You are dividing first and getting an int 0 * G_MAXUINT16 > > in the line > > c.green = i/99 * G_MAXUINT16; > > Multiply first and then divide. you might need a long int

Re: 100 Different Colors

2005-06-21 Thread Kevin DeKorte
You are dividing first and getting an int 0 * G_MAXUINT16 in the line c.green = i/99 * G_MAXUINT16; Multiply first and then divide. you might need a long int tmp to hold the value prior to assigning to c.green. By dividing first you basically are doing a multiply by 0 and that is why it is 0

RE: 100 Different Colors

2005-06-21 Thread Lola Smith
> Before your call to gdk_set_rgb_fg_color, do a > g_print on the values of > c.red, c.blue, c.green, and i. You may be surprised > at what you see. You're right. They're all the same thoughout the loop. red = 65535, blue = 0, green = 0, except at the very end green = 65535 (hence the yellow colo

Re: gtk_entry display val

2005-06-21 Thread Antonio Gomes
Sorry , if I did not understand properly your intentions. If so, I suggest you take a look at: http://developer.gnome.org/doc/API/2.0/gtk/GtkSpinButton.html regards On 6/21/05, srinivas <[EMAIL PROTECTED]> wrote: > hi ; > > i want to display int values in gtk_entry widget; > > gchar data=(gcha

what's GtkAnchorType or GtkAnchor intented to do ?

2005-06-21 Thread ztl_post
What is gtk Anchor intented to do ? I searches the reference manual, but no interpretation was found. What is a anchor ? May anyone explain it ? thanks. -- You have been selected for a secret mission. ___ gtk-app-devel-list mailing list gtk-app-devel-

gscanner

2005-06-21 Thread Joseph Turner
Hi Basically, getting some errors when I use gscanner, and I think I've narrowed it down to my attempt to set - cpair_comment_single to "--\n" (The default is "#\n") I suspect this is because it is expecting only ONE character as the start of the comment. Any thoughts on this? I can probably g

Re: What key is now pressed?

2005-06-21 Thread Tristan Van Berkom
Jan wrote: The main idea to know that key press or down in whole system, not only if my window have focus. I think this is as close as it gets using GTK+: http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-key-snooper-install This callback will be called for every key press /that

Re: 100 Different Colors

2005-06-21 Thread Lola Smith
Jan-Marek, thanks for your response. I tried this: >for (i=0; i<100; i++) { > c.pixel = 0; > c.red = G_MAXUINT16; > c.blue = (i % 33 / 99) * G_MAXUINT16; > c.green = i/99 * G_MAXUINT16; > gdk_gc_set_rgb_fg_color( gc, &c ); > gdk_draw_rectangle (widget->window, gc, TRUE, i*15, >

Re: What key is now pressed?

2005-06-21 Thread Jan
The main idea to know that key press or down in whole system, not only if my window have focus. On Mon, Jun 20, 2005 at 02:27:18PM -0400, Liam R. E. Quin wrote: > On Mon, 2005-06-20 at 21:28 +, Jan wrote: > > Hello. > > > > Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up

Re: GtkListStore and Threads problems

2005-06-21 Thread Lorena Salinas
You're right!! I made what you told me and now it all works fine !! thanks a lot all of you!! Lorena On Fri, 2005-06-17 at 10:48 -0400, Owen Taylor wrote: > On Fri, 2005-06-17 at 11:56 -0300, Lorena Salinas wrote: > > > gdk_threads_leave(); /* release GTK thread lock */ > > pthread_mutex_unlock(&

gtk_entry display val

2005-06-21 Thread srinivas
hi ; i want to display int values in gtk_entry widget; gchar data=(gchar *)malloc(sizeof(gchar)*MAX_SIZE); for (int_num =0; int_num < data; int_num++) { sprintf (data, "%d", &int_num); gtk_entry_set_text (GTK_ENTRY (win_entry),(gchar *) int_num ); gtk_widget

Re: segmentation fault when trying to save a pixbuf into a file

2005-06-21 Thread Tim Müller
On Tuesday 21 June 2005 12:59, y g wrote: > I had posted in the past but with no luck about segmentation faults > that I am getting when trying to save a pixbuf into a file. With a bit > more debugging this is the error I am getting when I try: > gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL); >

segmentation fault when trying to save a pixbuf into a file

2005-06-21 Thread y g
Hello, I had posted in the past but with no luck about segmentation faults that I am getting when trying to save a pixbuf into a file. With a bit more debugging this is the error I am getting when I try: gdk_pixbuf_save(pixbuf, "temp.bmp", "bmp", NULL); Program received signal SIGSEGV, Segmentati

Re: 100 Different Colors

2005-06-21 Thread Jan-Marek Glogowski
Hi > I need to create 100 little squares and each of them > has to be a different color. They can't just be a > random color: they have to follow the colors of the > standard color spectrum/palette. For example, the > first one is dark blue, then lighter blue, ... , > green, ... , red. Std. color