Re: label char ''

2005-02-13 Thread Liam R. E. Quin
On Sun, 2005-02-13 at 18:20 +0100, ALLs soft wrote: gtk_label_set_markup (GTK_LABEL (naziv_pjesme), span weight=\bold\ size=\xx-large\Naziv pjesme/span); why i cant print any string with ''? The is special in XML, so you need to escape it. Either use amp; or #38; Liam -- Liam Quin, W3C

Re: how to communicate with LPT? is this posible?

2005-03-22 Thread Liam R. E. Quin
On Tue, 2005-03-22 at 13:31 -0400, Antonio Gomes wrote: LTP = Linux Test Project ?! I'm guessing ALLs soft meant the printer, since LPT was the name for a Line Printer on some 1960s DEC operating systems. If so, the answer depends... to send something to the printer, you can pipe output to lpr

Re: OT: Processor register size

2005-04-12 Thread Liam R. E. Quin
On Mon, 2005-04-11 at 20:20 -0500, Timothy Flechtner wrote: wouldn't a pointer be register size? Depends on the CPU architecture. E.g. some have a mixture of register sizes (especially 8-bit CPUs, but also 16-bit ones). On the PDP11 series an int was typically 16 bits and so was a register,

Re: What key is now pressed?

2005-06-20 Thread Liam R. E. Quin
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 or down, and I wonder is there function to check up or down any key? A better approach is often to have a callback for a keypress and/or key release. Have your program

Re: Fonts

2005-08-01 Thread Liam R. E. Quin
people can give a better answer. Liam -- Liam R. E. Quin [EMAIL PROTECTED] http://www.holoweb.net/~liam/ Pictures from old books at http://fromoldbooks.org/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Fonts

2005-08-02 Thread Liam R. E. Quin
On Tue, 2005-08-02 at 10:35 +1000, Russell Shaw wrote: I was wandering if every time a gtk app prints some text, the instructions for each character to print are sent as 1 byte, or 4 bytes like utf-8 or whatever (eg, 0x61 for 'a') so that the text rendering thing on the server side knows

Re: Are windows necessary?

2005-08-23 Thread Liam R E Quin
On Tue, 2005-08-23 at 11:07 +0200, LaundroMat wrote: Hi, Quick question: is it possible to draw buttons on an empty screen (ie without a window parent)? Under X, not really, you'd be drawing on the root window, which is itself a window. If you want the *appearance* i.e., user can't move the

Re: What about OCR ?

2005-10-04 Thread Liam R E Quin
On Sun, 2005-10-02 at 19:37 -0600, Michael Torrie wrote: On Sun, 2005-10-02 at 09:43 +0200, Alpe.Nusslé wrote: I'm french and I cannot undurstand a long text in english, so I try to send you this request. Can we get an OCR function (reconnaissance de caractères en français) with GIMP

RE: How to determine Script from given Unicode text?

2005-10-21 Thread Liam R E Quin
On Fri, 2005-10-21 at 10:50 -0700, Gaurav Jain wrote: [...] I have a unicode character, and I need to find out what script it belongs to. Is it possible to determine this using a single Unicode character? In general no, because a single Unicode character can belong to more than one script

Re: labels and dpi

2006-01-10 Thread Liam R E Quin
On Tue, 2006-01-10 at 13:53 +0100, Fernando Apesteguía wrote: Yes but... in fact if I make a bigger label and the user changes dpi again, I run into the same problem. My question is if this is fixable? Or can I only make bigger the label? It sounds like you are using a fixed x/y layout instead

Re: Modal windows behaviour

2006-04-11 Thread Liam R E Quin
On Tue, 2006-04-11 at 12:17 -0300, Juan Pablo wrote: . I made a program with a main window which opens a dialog and this dialog opens another dialog. The two dialogs are set modal. I know your programming question was answered... but you might also like to consider how hard it would be to

Re: Rebooting the System

2006-04-11 Thread Liam R E Quin
On Tue, 2006-04-11 at 21:27 -0700, Sandeep KS wrote: Hello everyone, I am doing a project using GTK which needs rebooting of the system. When the code is executed, the user is asked to select some details. After he enters all the details and clicks on the OK button, i need to save

Re: Rebooting the System

2006-04-13 Thread Liam R E Quin
On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote: Liam R E Quin wrote: snip Root password should not be prompted for in a gtk-engine-themed window, of course... snip Out of curiosity, why is this bad? A gtk+ theme engine is a piece of executable code (usually in C) that can live

Re: GtkTree cursor scoping

2006-05-10 Thread Liam R E Quin
On Tue, 2006-05-09 at 10:50 -0400, Hassaan Khan wrote: 1. is it possible for the cursor not to move during an update for TreeView2 while the u If not how do i make sure that the cursor returns to the correct TreeView after an upda This doesn't answer your question (sorry) but may help you

Re: Scrolling a Tree View before it's realized

2006-11-11 Thread Liam R E Quin
On Sat, 2006-11-11 at 11:51 +0100, Attilio Fiandrotti wrote: [...] I eventually managed this by scrolling the treeview from a callback that gets fired after the expose event is fired. In order to have scrolling performed only the first time expose event is fired, i use a global flag which i

Re: help with window widgets

2006-11-12 Thread Liam R E Quin
On Sat, 2006-11-11 at 20:05 -0800, ybisou wrote: Hi,[...] Hello! :-) I'm writing a code that should allow me to read a list of int(one at the time) from a STDIN into my GTK program. Eventually you'll probably want to do this by registering stdin as a file descripter (fileno(STDIN), or just 0)

Re: Memory Issue

2006-12-14 Thread Liam R E Quin
On Fri, 2006-15-12 at 09:28 +0530, Preeti Joshi wrote: Does GTK have a bug that doesn't free the memory used by a window (say dialog) even after it has been destroyed? It's often simpler to keep dialogues around and hide/show them. Also make sure you unref everything! In general the toolkit

Re: How To Draw Bitmaps From FreeType?

2006-12-24 Thread Liam R E Quin
On Sat, 2006-23-12 at 10:30 -1000, Eric Mader wrote: I'm trying to render anti aliased bitmaps (i.e. 8 bits per pixel) generated by FreeType. There are some examples in the gfontview code, although the CVS version of that does not (or didn't last time I tried) compile out of the box directly,

Re: thread stack size

2007-01-18 Thread Liam R E Quin
On Mon, 2007-15-01 at 16:02 -0500, Dr. Michael J. Chudobiak wrote: If I patch the code to use 64k stack size for new threads, like this: [...] memory consumption drops dramatically (and the program still works): does it still work with larger images? E.g. make one in gimp that's 5,000 pixels

Re: Application for finding all Windows

2007-02-21 Thread Liam R E Quin
On Wed, 2007-21-02 at 17:11 +0530, Udayan Singh wrote: Hi, I want to develop an application where I can get a list of all the windows that are open in the GNOME Screen and find any activity being performed on any other window on the GUI screen (and not only my application) e.g. mouse

Re: gtk eating tab hotkey

2007-04-19 Thread Liam R E Quin
On Thu, 2007-04-19 at 20:45 -0400, Dan McMahill wrote: I've created a main menubar with a handful of menus using the UI manager. All of my hotkeys work except for the menuitem which uses Tab as the hotkey. The problem is that gtk eats the tab and uses it to move the focus around my

Re: points, pixels, fonts and pango

2007-05-13 Thread Liam R E Quin
On Sun, 2007-05-13 at 16:38 -0700, Pawel S. Veselov wrote: [...] - what is the Pango font size, and is it portable across rendering engines ? Now, that really to me seems to be a very basic question that I can't find any easy answer for :). The common definition of a font size seems to vary

Re: Subtitle extraction via OCR

2007-07-30 Thread Liam R E Quin
On Tue, 2007-07-31 at 00:32 +0200, Mathias Brodala wrote: Since I’m currently working on extracting hardcoded subtitles from some video files, I needed an application to do this. I quickly found SubRip[0], but it is, unfortunately, only available for Windows. Check that there's no

Re: Subtitle extraction via OCR

2007-07-30 Thread Liam R E Quin
On Tue, 2007-07-31 at 01:13 +0200, Mathias Brodala wrote: Hi Liam. (You don’t need to CC me, I’m subscribed.) evolution really needs a swap To and Cc fields button. I've yet to use any open source OCR package that has been less effort than rekeying -- commercial OCR software is workable

Re: I can't understand the difference output of only a line differ

2007-12-06 Thread Liam R E Quin
On Thu, 2007-12-06 at 09:40 -0800, Mike Melanson wrote: I just wanted to throw out the possibility of asking your client whether they have any interest in open sourcing the video codec itself? Now would be a good time, if the codec might be useable on the Web -- see for example

Re: Preventing Multiple instance of GTK application

2008-04-14 Thread Liam R E Quin
On Sat, 2008-04-12 at 15:16 +0100, Carlos Pereira wrote: You can write a .lock file everytime you start and then remove it when you close. To know if other instance is running, you just have to check if your .lock file exists. Please don't do this. If you must, take into account (1)

Re: URI's

2008-09-30 Thread Liam R E Quin
On Tue, 2008-09-30 at 13:19 -0600, Kevin DeKorte wrote: Ok, thanks for the info. Some macros like G_IS_URI or something similar would have been nice, but maybe I can work out some code using the g_filename_to_uri and g_filename_from_uri functions to determine what value I have. What are you

Re: Generic character types of gregex are unrecognised

2009-01-06 Thread Liam R E Quin
On Wed, 2009-01-07 at 02:00 +0900, tks wrote: [...] reg = g_regex_new (\d\D\s\S\w\W, 0, 0, error); Watch out that \ is special in C strings, so you need \\d\\D etc. Liam -- Liam Quin - XML Activity Lead, W3C,

Re: Generic character types of gregex are unrecognised

2009-01-08 Thread Liam R E Quin
On Thu, 2009-01-08 at 17:43 +0900, tks wrote: On Wed, 2009-01-07 at 02:00 +0900, tks wrote: [...] reg = g_regex_new (\d\D\s\S\w\W, 0, 0, error); Watch out that \ is special in C strings, so you need \\d\\D etc.

Re: change the focus ring's color

2009-01-16 Thread Liam R E Quin
On Fri, 2009-01-16 at 17:54 +0800, zhenghe zhang wrote: Hi all I have some problems, and I hope you tell me, thank you. As followed: The button obtains the focus, and there is focus ring, now I want to change the focus ring's color, but I don't do it. Please remember that colours are

Re: g_malloc overhead

2009-01-21 Thread Liam R E Quin
On Wed, 2009-01-21 at 10:21 +0100, BJörn Lindqvist wrote: 2009/1/21 Liam R E Quin l...@holoweb.net: On Mon, 2009-01-19 at 18:43 +0100, BJörn Lindqvist wrote: Actually, a custom allocator could be useful even in the general case. Malloc is a system call and has quite bad performance

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Liam R E Quin
On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: Hi,all I want to know that when I start a window,how can I set it's default size to fill the whole screen? Others have already explained how to do it, but, Please consider carefully if this is the behaviour you want -- maximised windows

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Liam R E Quin
On Mon, 2009-05-25 at 21:15 +0800, donglongchao wrote: Thanks for your advice.Because there are too many widgets in the start window, I think it is necessary to maximize it first.Maybe I should ask my customs for their suggestions. Show fewer widgets in the main window, perhaps :-) Liam --

Re: csv (comma separated value) file

2009-08-03 Thread Liam R E Quin
On Mon, 2009-08-03 at 12:45 -0400, Tristan Van Berkom wrote: [...] Currently its pretty easy using g_file_get_contents()/g_strsplit() CSV files are not just comma separated, and in some cases can have column headers and other metadata. There's also escaping. a,b,c\d,e a,b,c,d,e a;b;c,d;e You

Re: csv (comma separated value) file

2009-08-03 Thread Liam R E Quin
On Mon, 2009-08-03 at 14:23 -0400, Tristan Van Berkom wrote: On Mon, Aug 3, 2009 at 1:21 PM, Liam R E Quinl...@holoweb.net wrote: On Mon, 2009-08-03 at 12:45 -0400, Tristan Van Berkom wrote: [...] I see that was an uneducated comment on my part ;-) My reply wasn't meant as a criticism, hope it

Re: Window Managers Key Combinations and Accelerators

2009-12-09 Thread Liam R E Quin
On Wed, 2009-12-09 at 08:10 -0500, dhk wrote: Two things I would like to do is override the default Tab key press behavior and the Ctrl-Alt-Del behavior. Tab is usually used by gtk+ (not the window manager) to move between items e.g. in a dialogue box. Shift-tab does the same but in the

Re: Snow effect over a GtkWindow

2009-12-27 Thread Liam R E Quin
On Sun, 2009-12-27 at 16:27 +0100, Matteo Landi wrote: Hi all, for fun I'm trying to reproduce snowflakes falling down on my fullscreen gtk app. I'd say look at xsnow if it's still around. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books:

Re: Grid Based Canvas

2010-05-24 Thread Liam R E Quin
On Tue, 2010-05-25 at 05:04 +0500, Asad Jibran Ahmed wrote: [...] The canvas will have grids, much like a graph paper. Whenever the user clicks on one of the grid squares, that square will become selected and the selection will be shown by highlighting the square. It sounds like you really

Re: Application path

2011-01-17 Thread Liam R E Quin
On Wed, 2011-01-12 at 13:13 +, John Emmas wrote: Is there any [...] function that would tell me the full path to the application - e.g. /usr/bin/my_app/my_app under Linux, or C: \Program Files\my_app\my_app.exe under Windows? Not in general - it's best to decide you don't need this :-)

Re: Memory leaks

2011-02-09 Thread Liam R E Quin
On Thu, 2011-02-10 at 00:43 +0200, Costin Chirvasuta wrote: but aside from that it's a pure waste of CPU cycles. I hate to throw fuel in the fire but this is just absurd! How complex is freeing 200 pointers? O(1)? Years ago my text retrieval package had an option to call free() for all the

Re: Memory leaks

2011-02-10 Thread Liam R E Quin
On Thu, 2011-02-10 at 10:50 +0200, Costin Chirvasuta wrote: Because malloc() implementations generally kept a linear linked list of free space, and traversed the list on a free() in case they found adjacent memory areas to the one you were freeing, which they could join together and make

Re: GLIB for a webserver

2011-12-08 Thread Liam R E Quin
On Thu, 2011-12-08 at 11:13 -0200, Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - wrote: - On Apache ARP project, they said they created it instead of using glib because the lack of IPC functions like memory mapping. This makes no sense since they could use glib and also write mmap

Re: pango or any other way to format text

2012-05-14 Thread Liam R E Quin
On Mon, 2012-05-14 at 20:20 +0800, Rudra Banerjee wrote: Can anybody please take some time to show me simple way of implementing pango formatting to get greek letters, subscripts and superscripts in gtk2+? A minimal(complete with headers) example will be very appriciated. Greek is the same as

Re: Open file from menu

2012-07-09 Thread Liam R E Quin
On Tue, 2012-07-10 at 00:55 +0530, Rudra Banerjee wrote: Will anyone kindly show the way? stat(argv[1], filestat); buffer = (char *) malloc(filestat.st_size * sizeof (char)); efile = fopen(argv[1], r); fread(buffer, filestat.st_size, 1, efile); gtk_text_buffer_set_text(textbuffer, buffer,

Re: Open file from menu

2012-07-09 Thread Liam R E Quin
On Mon, 2012-07-09 at 22:01 +0200, David Nečas wrote: On Mon, Jul 09, 2012 at 03:40:11PM -0400, Liam R E Quin wrote: also check that the free() was OK I wonder how you do that (apart from not getting any glibc MALLOC_CHECK_ error message or similar). There's no portable way to do it really

Re: GTK+3 fonts

2012-10-21 Thread Liam R E Quin
On Sat, 2012-10-20 at 20:23 -1000, Roger Davis wrote: Hi all, I [...] am partial to the Sans font for various reasons. On most linux systems this is actually an alias, not a font name. Here, it's DejaVu Sans Book: $ fc-match Sans DejaVuSans.ttf: DejaVu Sans Book $ so, add DejaVuSans.ttf

Re: GTK+3 fonts

2012-10-21 Thread Liam R E Quin
On Sun, 2012-10-21 at 09:58 -1000, Roger Davis wrote: when I downsize my font display to smaller sizes (anything 16 or below), the font weight appears to make a dramatic shift from Book to ExtraLight. By default I believe the mac changes antialiasing and hinting strategies (is this 16pt or

Re: GTK+3 fonts

2012-10-21 Thread Liam R E Quin
On Sun, 2012-10-21 at 15:42 -1000, Roger Davis wrote: I'm thinking that my better strategy at this point is to just #ifdef my app code to specifically request DejaVu Sans on the Mac, rather than having to tweak these fontconfig files on each Mac in addition to hand-installing DejaVu. Or

Re: open an existing file in buffer and write on it

2013-01-25 Thread Liam R E Quin
On Fri, 2013-01-25 at 10:44 -0800, Andrew Potter wrote: [...] You can get a nice buffer of binary data to write to file: Please let's not encourage the use of binary file formats where there's no measured performance requirement. An XML file would be better if structure is needed, as then it

Re: open an existing file in buffer and write on it

2013-01-25 Thread Liam R E Quin
On Fri, 2013-01-25 at 11:45 -0800, Andrew Potter wrote: On Fri, Jan 25, 2013 at 11:14 AM, Andrew Potter agpot...@gmail.com wrote: [...] blah blah blah. On second reading this comes off as a little flippant, my apologies. You made a good point, and I should have prefaced my example with

Re: open an existing file in buffer and write on it

2013-01-25 Thread Liam R E Quin
On Sat, 2013-01-26 at 00:06 +0100, David Nečas wrote: On Fri, Jan 25, 2013 at 04:25:53PM -0500, Liam R E Quin wrote: That it's easier for the programmers to create and read application-specific binary files is a problem that would be worth fixing. Probably you mean replacing

Re: switch printer tray during printing

2013-03-13 Thread Liam R E Quin
On Mon, 2013-03-11 at 16:13 -0500, Michael Cronenworth wrote: Changing trays may be out of the question, but I do know that Postscript allows per-page paper orientation changes. I have a few PDFs that do so. You can change paper sizes too, which will generally cause a different paper tray to

Re: Stylize Text Caret?

2014-01-18 Thread Liam R E Quin
On Sat, 2014-01-18 at 17:31 -0600, Zane Swafford wrote: I was wanting to make the text caret within a text entry wider and a specific color Although I don't know the answer, I'll note that you have to watch carefully for users with a different set of colours than you, and for users who have

Re: GTK+3 styles and themes

2014-04-01 Thread Liam R E Quin
On Tue, 2014-04-01 at 11:49 +0200, Roland Koebler wrote: Using custom stylesheets *does* work (although it still seems that ~/.gtk-3.0.css has no effect under Gnome3); but for some themes and Gnome3, setting background-color doesn't have any effect, but setting background seems to work. A

Re: set custom entry background?

2015-11-16 Thread Liam R E Quin
On Mon, 16 Nov 2015 17:53:59 + Emmanuele Bassi wrote: [...] > .error-entry { background-color: red; } If you do this, watch that if the theme's foreground colour is red, the user will be screwed... Setting background-color without setting the text color (color: yellow)

Re: gtk_text_buffer_delete ?

2015-10-09 Thread Liam R E Quin
On Thu, 08 Oct 2015 20:59:21 +0200 Stefan Salewski wrote: > I was hoping that it could be possible to simple block input when buffer > has a maximum length, but I got that not working. Note that this can give an unpleasant user experience. It might be more helpful just to

Re: gtk_text_view_im_context_filter_keypress - howto replace Tab with 4-spaces?

2015-12-21 Thread Liam R. E. Quin
ey handled by im_context\n"); This is the wrong way round. I think that if gtk_text_view_im_context_filter_keypress returns true you're supposed to return TRUE without doing anything. > You may find the devhelp program useful - search for this function in > the index and you'll see an e

Re: Why is it impossible to move a window programmatically in GTK+ (C/C++)

2018-05-30 Thread Liam R E Quin
On Wed, 2018-05-30 at 13:33 -0400, Tarie Nosworthy via gtk-app-devel- list wrote: > I am writing an app in GTK+, and I wanted to center a splash screen. Note, users get irritated by splash screens they can't move. You *can* make a window that's centered and immovable, e.g. gimp does it, so you

Re: simple question

2018-02-17 Thread Liam R E Quin
On Sat, 2018-02-17 at 21:32 +0100, Wojciech Puchar wrote: > i want in my program to change background color of the gtk_button to > red > sometimes as a signal to the user. Although i don't have an answer (sorry) i'll note - i've worked with people who were red/black colourblind. I'd really be

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread Liam R E Quin
On Wed, 2019-03-20 at 21:37 -0400, Reuben Rissler wrote: > I originally thought I would participate on Discourse via email, > then email got discouraged in favor of the web UI. > > I don't have that much answers, and neither do I have a lot of > questions. Therefore I will just quietly fade