Re: Questions on creation of glyphs

2011-07-18 Thread Ferdinand Ramirez
or is there another thread with this information? Thanks, -Ferdinand --- On Thu, 7/14/11, Ferdinand Ramirez ramirez.ferdin...@yahoo.com wrote: From: Ferdinand Ramirez ramirez.ferdin...@yahoo.com Subject: Questions on creation of glyphs To: gtk-app-devel-list@gnome.org Date: Thursday, July 14

Custom font for application

2011-07-24 Thread Ferdinand Ramirez
Does anyone here know how I can create and load a custom font for my application from the source code? What method or methods do I need to invoke to load the font that I can render? What rendering methods do I need to override so that my custom fonts are the ones rendered? Are there any

Need control of filename entry area in gtkfilechooser

2012-01-12 Thread Ferdinand Ramirez
When I type in the filename into the filename entry area in gtkfilechooser dialog, I want to intercept the text that is entered, modify it and then display it in the filename area. How do I do this? For a regular text buffer, I know how to do this: I can do a gtk_text_view_get_buffer and then

cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
If I set the filename using gtk_file_chooser_set_current_name from a callback method for key-press-event, the filename shows up in the text entry box, but the cursor position is at 0 once the filename has been set. How do I set the cursor position to be at the end of the string I set as the

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
--- On Thu, 2/2/12, Emmanuel Thomas-Maurin manutm...@gmail.com wrote: I think you may use something like: gtk_editable_set_position(GTK_EDITABLE(entry), -1) The problem is that I don't seem to have access to location_entry in GtkFileChooser for me to use the above function. Do you know how

GtkTextView and PangoFcDecoder

2012-02-23 Thread Ferdinand Ramirez
Is it possible to use PangoFcDecoder with GtkTextView so that I can use the glyph index to render the glyphs? If so, at what point does the program invoke the callback provided as a parameter in pango_fc_font_map_add_decoder_find_func? The documentation says it is called during create_font

Re: GtkTextView and PangoFcDecoder

2012-02-23 Thread Ferdinand Ramirez
somewhere in the code? If it needs to be explicitly created, does anyone know where in Mozilla code it gets created so that I can use it as an example? Thanks, -Ferdinand --- On Thu, 2/23/12, Ferdinand Ramirez ramirez.ferdin...@yahoo.com wrote: Is it possible to use PangoFcDecoder with GtkTextView

GtkTextView and bidi text

2012-04-23 Thread Ferdinand Ramirez
How can I force GtkTextView object to use left to right rendering when I type in a character which has the default behavior of being from a RTL language? I need this behavior when I mix some RTL characters with LTR characters and the first character on a line is of RTL type. The following

Re: GtkTextView and bidi text

2012-04-24 Thread Ferdinand Ramirez
--- On Mon, 4/23/12, Dov Grobgeld dov.grobg...@gmail.com wrote: Lots of years ago we spoke about having a direction override as a paragraph attribute, but we never got around to implementing it. I think it is a good idea to give control to the programmer rather than make it automatic.

How do I fix the window size?

2012-06-05 Thread Ferdinand Ramirez
Apologies if this has been asked before, but I searched online and could not find any discussion on this issue and I did not find anything on the documentation page. I have a treeview and a scrollbar which are both within a hbox. The hbox is within a window. When I expand the treeview, the

Re: How do I fix the window size?

2012-06-05 Thread Ferdinand Ramirez
--- On Tue, 6/5/12, James Tappin jtap...@gmail.com wrote: I think the solution is to place the treeview in a gtk_scrolled_window rather than using an hbox and an explicit scrollbar. The reason for trying out with an explicit hbox is that the column headers scroll out of view with a

Re: How do I fix the window size?

2012-06-06 Thread Ferdinand Ramirez
--- On Tue, 6/5/12, Chris Vine ch...@cvine.freeserve.co.uk wrote: Are you calling gtk_scrolled_window_add_with_viewport()?  If so, use gtk_container_add() instead, because tree views have native scrolling capabilities. Tried out both. I'm in the process of trying out other options like

GtkTreeView Editable cells?

2012-07-17 Thread Ferdinand Ramirez
I have a GtkTreeView and I am able to double click and trigger my function on double clicking. Now if I add a renderer and make it editable, double clicking always goes to edit mode for the cell. Instead, I want to edit only when I single click on an already selected cell and my double click

Incrementally inserting GdkPixbuf into GtkTextBuffer

2012-11-01 Thread Ferdinand Ramirez
How do I insert an image into a GtkTextBuffer incrementally so that I can see that the image is loading instead of having to wait for some time with no apparent activity and seeing it all at once after a time lag? I looked at GdkPixbufLoader, but am unable to figure out how to use this. I

Displaying tabular data in GtkTextView

2012-12-30 Thread Ferdinand Ramirez
Does anyone here know what is the best way to display a table in GtkTextView? I want to have a table with borders and editable cells like in MS Word. Thanks for any advice to achieve this, -Ferdinand ___ gtk-app-devel-list mailing list

Threads and gtk_widget_show (code should not be reached?)

2013-01-30 Thread Ferdinand Ramirez
I have encountered a strange error followed by a crash when I add the following object to a GtkTextView by creating a child anchor and call gtk_widget_show_all. The object that is added The object that is added to the child anchor is a GtkFrame inside which is a GtkTable and each cell of the

Re: Threads and gtk_widget_show (code should not be reached?)

2013-01-30 Thread Ferdinand Ramirez
the one you describe. HTH 2013/1/30 Ferdinand Ramirez ramirez.ferdin...@yahoo.com I have encountered a strange error followed by a crash when I add the following object to a GtkTextView by creating a child anchor and call gtk_widget_show_all. The object that is added The object

Re: Threads and gtk_widget_show (code should not be reached?)

2013-01-30 Thread Ferdinand Ramirez
--- On Wed, 1/30/13, Andrew Potter agpot...@gmail.com wrote: If you are getting an iterator warning, you may be trying to use an invalidated GtkTextIter. Be sure to read http://developer.gnome.org/gtk3/stable/TextWidget.html I have nothing in there that modifies the buffer. I just create

GtkTextView loses selection when using GtkSpinButton

2015-10-15 Thread Ferdinand Ramirez
I have a GtkTextView as part of my application along with a GtkSpinButton object to control the font size on the GtkTextView. If I make a selection in the text and then click in the entry portion of the spin button and then click the arrows, everything works fine. However, if I do not click in

GdkPixbuf and click events

2017-08-03 Thread Ferdinand Ramirez via gtk-app-devel-list
I have a program that adds a GdkPixbuf to a GtkTextView. I would like to right click on the image and capture the mouse click event and execute a callback function. Is there any way of achieving this using GdkPixbuf? Thanks, Ferdinand ___