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 away.
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 co
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 irr
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
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) is
usually a mistak
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 have a count of charac
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
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 ch
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
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.
>
>
On Fri, 2013-01-25 at 11:45 -0800, Andrew Potter wrote:
> On Fri, Jan 25, 2013 at 11:14 AM, Andrew Potter 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 links to
> "p
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 i
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.
O
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 o
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
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 n
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,
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
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 mma
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
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
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
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 reall
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 book
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
oppos
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 Quin 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 criticis
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
Y
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
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" wind
On Wed, 2009-01-21 at 10:21 +0100, BJörn Lindqvist wrote:
> 2009/1/21 Liam R E Quin :
> > 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
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 on certain
> platforms (windows in particular i think). Something like the gslice
> allocator could
> Probably i
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
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 y
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, http://w
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 y
On Thu, 2008-05-15 at 17:00 +0200, Enrico Tröger wrote:
> On Thu, 15 May 2008 09:23:18 -0400, Liam R E Quin <[EMAIL PROTECTED]>
> wrote:
[...]
> > Wouldn't it be better to work on supporting a range of pages??
>
> Sure would it be better but it would be also more time
On Thu, 2008-05-15 at 14:33 +0200, Enrico Tröger wrote:
> is there any way to disable or overwrite the print range in
> GtkPrintSettings?
>
> The implementation of printing in my application currently doesn't
> support a range of pages. So I'd like to disable the selection of such
> or at least t
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) mult
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 http://www.webv
On Sun, 2007-09-30 at 10:56 +0100, Keith Feesh wrote:
> Hello, I have been developing a drawing application for quite some time now
Interesting, which one? :-)
[...]
> The way that I do things now includes redrawing the entire canvas every time
> the mouse is moved, in order to clear the old
> ou
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 w
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 teletex
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 va
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 d
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.
> mous
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
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
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 toolk
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
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
On Fri, 2006-06-16 at 11:50 -0400, [EMAIL PROTECTED] wrote:
> Ok, you guys were a great help with my last question :) Does GTK have a
> simple blocking yes/no dialog? Something that will return true or false,
> or similar? I could write my own really quickly, but I was kinda hoping
> GTK would s
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 y
On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote:
> Liam R E Quin wrote:
>
> > Root password should not be prompted for in a
> > gtk-engine-themed window, of course...
>
>
> Out of curiosity, why is this bad?
A gtk+ theme engine is a piece of executable code (
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 sav
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
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 inste
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 scrip
On Tue, 2005-10-04 at 16:30 +0200, Christophe Combelles wrote:
> Liam R E Quin wrote:
> > Unfortunately I have yet to find an open source or Free OCR program
> > that works reliably for me. The best I have used is Finereader
> > made by http://abbyy.com/ but it is commerc
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)
>
On Mon, 2005-09-12 at 21:59 +1000, Nick Watts wrote:
> [inkscape crash on loading a jpeg]
> Second, today I'm trying to create a website with my own GTK+ text editor
> and when I open text files with it from ONE PARTICULAR directory, it
> randomly adds duplicate 'new line' characters where there
On Sat, 2005-09-03 at 11:08 +0200, Przemysław Sitek wrote:
> I am writing a widget that draws a custom background under its
> child. I do this by subclassing GtkEventBox (since it has its own
> window) and overwriting expose virtual method. How can I get background
> color (or base color) i
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 t
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 w
or to describe what you
are trying to do so 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 ma
On Sun, 2005-06-26 at 03:19 +0200, Jaap Haitsma wrote:
> I have most of it implemented already. The only thing which I haven't
> figured out yet is the second part of point 2. That is hiding the sticky
> notes when you click on the desktop.
Maybe hide them when you lose keyboard focus?
It's not
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 pro
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, bu
On Tue, 2005-03-29 at 17:28 +0200, Fabio Rotondo wrote:
> Roland Smith wrote:
> [...] suppose you have to write a qsort callback:
>
> void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const
> void *, const void *));
>
> suppose the "const void *" is actually an int value. By downcast
On Tue, 2005-03-22 at 22:20 +0100, ALLs soft wrote:
> i meen LPT and not LTP.
> how to read a word from parallel port.
> more on http://www.1osb.ims.hr/skola/lpt/LPT-input.html, but not english.
> i now work this with DLportIO but it work only on windows.
> i need read what is on 889 adress (if in
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
On Mon, 2005-03-14 at 17:18 +, Athanasios Anastasiou wrote:
> There are two threads of execution, one is handling reading and decoding
> of the incoming stream of data and the other is handling processing.
Multi-threaded applications sometimes get into trouble if more than one
thread is tryi
On Sun, 2005-02-13 at 18:20 +0100, ALLs soft wrote:
> gtk_label_set_markup (GTK_LABEL (naziv_pjesme), " size=\"xx-large\">Naziv pjesme");
>
> why i cant print any string with '&'?
The & is special in XML, so you need to escape it.
Either use & or &
Liam
--
Liam Quin, W3C XML Activity Lead, htt
On Tue, 2005-01-25 at 23:36 -0500, Freddie Unpenstein wrote:
> >> Why not use libcurl? You can get much more info about your
> >> connection.
>
> > libcurl even provides examples for how to use libcurl with a Gtk+ app.
> > Although I must admit their example should work fine for simple things
> >
73 matches
Mail list logo