Re: recommendations for new laptop as existing one could crash.

2017-06-05 Thread jcupitt
I've been happy with my xps-13, fwiw. https://arstechnica.co.uk/gadgets/2017/01/dell-xps-13-ubuntu-review-2017/ It's £1200 for the one with Ubuntu pre-installed. Fedora works well too, apparently. John ___ gtk-app-devel-list mailing list

Re: how to customise gtk-doc output

2017-04-13 Thread jcupitt
Hi Stefan, > headers/footers customizable. Right now they are generated by the > docbook stylesheets and this makes it slow. Feel free to file a bug an > mention what changes you did. This will help me to design this features. OK, bug here: https://bugzilla.gnome.org/show_bug.cgi?id=781291

Re: how to customise gtk-doc output

2017-04-12 Thread jcupitt
ibvips/API/current/VipsImage.html Reformatter here: https://github.com/jcupitt/libvips/blob/gh-pages/gen-api.rb John ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list

how to customise gtk-doc output

2017-04-05 Thread jcupitt
Hello everyone, I'd like to customise the gtk-doc output for my project: I'd like a new header, and some tracker stuff in the footer. I see glib does this. The online docs here: https://developer.gnome.org/gobject/unstable/ Have a new header and footer pasted into each page. What's the best

Re: Cross platform development

2017-03-19 Thread jcupitt
ou have your project buildable via cmake or autotools, it should be simple to adapt. https://github.com/jcupitt/build-win64 John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Migrate to gtk3.0

2017-03-10 Thread jcupitt
On 10 March 2017 at 15:48, Rúben Rodrigues wrote: > Yes, i'm using GtkPlot! SO, I think I'm unable to migrate this to gtk3 > because of graphs. SOmeone who knows something about this charts? > http://madebyryan.blogspot.pt/2011/08/smooth-curves-for-gtk-chart-component.html

Re: Up-to-date Valgrind suppression file for GLib/GTK+ ?

2016-12-30 Thread jcupitt
On 29 December 2016 at 23:55, Emmanuele Bassi wrote: > As Philip explained earlier in the thread, Valgrind can only accept a > single suppression file. So, if GTK+ ships a suppression file, it > would need to include suppression rules for all its dependencies, and > you would

Re: How to confirm a memory leak

2016-07-30 Thread jcupitt
You need to set the malloc routines to use the real system malloc; export G_DEBUG=gc-friendly export G_SLICE=always-malloc I have this suppressions file: https://github.com/jcupitt/libvips/blob/master/libvips.supp That's for a gobject-based library, you might need

Re: disabling mouse scroll on GtkComboBox and spin buttons

2016-05-22 Thread jcupitt
On 22 May 2016 at 10:57, Florian Pelz wrote: > On 05/22/2016 11:54 AM, jcup...@gmail.com wrote: >> x = gtk_combo_box_new_text(); >> g_signal_connect(x, "scroll-event", G_CALLBACK(true_cb), NULL); >> ... > > Ah yes, this is a much better way. I'm not sure it'd work for

Re: disabling mouse scroll on GtkComboBox and spin buttons

2016-05-22 Thread jcupitt
On 22 May 2016 at 07:36, Lokesh Chakka wrote: > Is there a way to disable mouse scroll on GtkComboBox and GtkSpinButton > widgets ? Yes, the mouse wheel to change the combo drives me CRAZY. It means you can't use the mouse wheel to scroll a window that contains

Re: bug in gtk_adjustment_clamp_page()?

2015-11-27 Thread jcupitt
wing area coordinates myself. I suppose another solution would be to change the behaviour of gtk_adjustment_clamp_page() for objects larger than the viewport, but I doubt if there's much enthusiasm for that. My code is here, if it's any help: https://github.com/jcupitt/vipsdisp John _

bug in gtk_adjustment_clamp_page()?

2015-11-26 Thread jcupitt
Hi all, I've found some puzzling code in gtk_adjustment_clamp_page(). Maybe it's a bug? I'm unsure. These lines: https://git.gnome.org/browse/gtk+/tree/gtk/gtkadjustment.c#n932 Clamp the value of an adjustment so it lies between lower and upper. But aren't the < and > reversed? Those lines

Re: building glib on windows

2015-11-03 Thread jcupitt
Hi Tim, On 3 November 2015 at 14:53, Tim-Philipp Müller wrote: > The build system GStreamer uses for this (cerbero) should be able to do > that (our windows build bots do that): > > http://cgit.freedesktop.org/gstreamer/cerbero/ From reading the sources, it looks like

Re: Distributing OSX binaries

2015-07-04 Thread jcupitt
Hi Daniel, On 4 July 2015 at 03:37, Daniel Kasak d.j.kasak...@gmail.com wrote: I've previously built OSX binaries, just for myself, but now I'd like to share amongst some workmates. I'm not really up-to-speed with OSX and packaging ( new job, Mac-only shop ). I use this:

Re: [glib] Why is g_ptr_array_set_size take a gint instead of guint for the length parameter?

2014-12-23 Thread jcupitt
I'm looking for the rational of using 'gint' instead of 'guint' in the call: g_ptr_array_set_size (GPtrArray *array, gint length); I imagine that the use of a signed integer was an oversight at the time which can now not be corrected without breaking API. It's not worth that. I

Re: Documenting properties and signals with gtk-doc

2014-12-20 Thread jcupitt
I believe (I think) signals and properties are found at build time by starting up your library and walking the classes you define. You need to add a bit more machinery to your Makefile.am to help it run g-ir-scanner for you. There's a page on the wiki about this:

Re: Documenting properties and signals with gtk-doc

2014-12-20 Thread jcupitt
Oh dear, I'm sorry, I've been fiddling with gobject-introspection too much recently. Of course you don't need introspection to generate gtk-doc output. I don't know why your signal documentation is not being generated. On 20 December 2014 at 13:10, jcup...@gmail.com wrote: I believe (I

Re: Plotting library for GTK+

2014-12-08 Thread jcupitt
On 8 December 2014 at 15:27, Johannes Deutsch j_deut...@web.de wrote: I use goffice for this kind of thing. It's the plot library from gnumeric, so any plot you can make in gnumeric, you can make with goffice. Do you know if it's safe to consider goffice for applications based on gtk3 that

Re: Plotting library for GTK+

2014-12-02 Thread jcupitt
On 2 December 2014 at 16:17, Sergei Naumov vo...@rambler.ru wrote: I think this question was asked many times but googling gives a rather patchy answer to it. So, I am writing a piece of C code that acquires some data from hardware controllers and it also has to plot a few simple graphs and

g_spawn*() on windows

2014-07-03 Thread jcupitt
Hi all, I'm using g_spawn_command_line_sync() to run a series of command-line programs (actually ImageMagick's convert, if that's important). It works fine, but on Windows I get an incredibly annoying console window flash up for a fraction of a second for each command. Does anyone have any good

Re: g_spawn*() on windows

2014-07-03 Thread jcupitt
On 3 July 2014 15:26, Allin Cottrell cottr...@wfu.edu wrote: On Thu, 3 Jul 2014, Michael Cronenworth wrote: On 07/03/2014 08:33 AM, jcup...@gmail.com wrote: Yes, I'm doing that. It all works and I can capture stdout and stderr from the convert.exe I'm running, it's just that I get a very

Re: Drawing bit mapped image in drawing area

2014-03-27 Thread jcupitt
which displays a live video image with an overlay. It's in Python for gtk2, but gtk3 is (almost) the same, except for the drawing model for the overlay. It runs at about 50fps with not too much CPU load on my laptop. https://github.com/jcupitt/rtiacquire/blob/master/rtiacquire/preview.py

Re: Still confused on new thread starting idle functions to update UI.

2013-12-04 Thread jcupitt
Here's a tiny, complete program that does almost what you want. It's gtk2, but should work fine with gtk3. It just updates a status bar, but it'd be easy to make it do a textview instead. John ___ gtk-app-devel-list mailing list

Re: Still confused on new thread starting idle functions to update UI.

2013-12-04 Thread jcupitt
Oh dear, I think my attachment got munched (thanks Chris). Try here: http://pastebin.com/PsG2UDkY On 4 December 2013 13:31, jcup...@gmail.com wrote: Here's a tiny, complete program that does almost what you want. It's gtk2, but should work fine with gtk3. It just updates a status bar,

Re: Valgrind is grinding my gears

2013-11-05 Thread jcupitt
I have a valgrind file here I use for my large gtk2 program: http://www.vips.ecs.soton.ac.uk/development/nip2a.supp I get clean runs with this file. Run with something like: export G_DEBUG=gc-friendly export G_SLICE=always-malloc valgrind

[gtk-osx-devel] error in gtk-osx.modules

2013-10-04 Thread jcupitt
Hi, I noticed a small error in the current gtk-osx.modules. Around line 159 it has: patch file=/Users/john/Development/GTK-OSX/gtk-osx-build/patches/gtk+-2-m4-creation.patch strip=1/ I guess this should be: patch file=http://git.gnome.org/browse/gtk-osx/plain/patches/gtk+-2-m4-creation.patch;

Re: New GObject Introspection tutorial

2013-06-17 Thread jcupitt
On 13 June 2013 07:54, Simon Kågedal Reimer skage...@gmail.com wrote: I've written a tutorial on how to make a basic multilevel Hello World using GObject Introspection: http://helgo.net/simon/introspection-tutorial/ Looks great, thank you for making this, Simon. How about some notes on boxed

Re: GUI freeze and long blocking operation

2013-06-15 Thread jcupitt
, I did a music player that pulses a set of lightbulbs in time: https://github.com/jcupitt/huebert/blob/master/huebert/controller.py Every method starts with: logging.debug('methodname: parameters') And I debug by running with logging enabled and dumping the output to a file: ./huebert.py

Re: GUI freeze and long blocking operation

2013-06-14 Thread jcupitt
On 14 June 2013 07:29, Kip Warner k...@thevertigo.com wrote: Hey Tristan. I see what you mean, but I think I should have provided more code to show that what I was actually doing I think was what your followup suggestion was. Namely do some short work, update the GUI, do some more short work,

Re: GUI freeze and long blocking operation

2013-06-13 Thread jcupitt
Hi Kip, On 13 June 2013 06:40, Kip Warner k...@thevertigo.com wrote: If I start the long job function from within my assistant's prepare signal callback, as opposed to en-queueing it there via idle_add(), then the GUI doesn't refresh throughout the duration of the long job. This happens even

Re: GUI freeze and long blocking operation

2013-06-12 Thread jcupitt
self.progress.update(percent) hide progress feedback mark gui active again Code here, if it's any help: https://github.com/jcupitt/rtiacquire John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

Re: GtkBox vs GtkGrid

2013-06-03 Thread jcupitt
Hi Tom, On 2 June 2013 13:12, Thomas A. Moulton t...@moulton.us wrote: Am I missing something? If I use GtkBox it seems that once I add a child I can't get access to it's address any more (GtkWidget *) So if I create a box with some things in it in glade I really can't do much with them.

Re: Widget alignment

2013-05-22 Thread jcupitt
Hi Kip, On 22 May 2013 01:17, Kip Warner k...@thevertigo.com wrote: How can I have this image widget added to the parent such that it is always vertically aligned with the top of the page, but keeping the other child box below it still vertically centred? I've tried wrestling with Glade, but

Re: Wake screen saver

2013-03-18 Thread jcupitt
Hi Paul, On 18 March 2013 21:22, Paul Stelzig paul.stel...@reell.com wrote: Is there a way make the screen saver wake up without a key press or mouse movement? My program is written in C with GTK+ 3.0 I'm running on Linux Mint 13 with the mate desktop. The program is monitoring a inputs

Re: window-popup = menu

2013-03-13 Thread jcupitt
Hi Mariano, Just call gtk_menu_popup() and it'll position the menu away from the screen edges for you. https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup John On 13 March 2013 04:05, Mariano Gaudix marianocordobar...@gmail.com wrote: Hello how i can determine the size of

Re: window-popup = menu

2013-03-13 Thread jcupitt
Hi again, You can connect to the map event. This happens after the window has been realized and just before the window appears on the screen, so the size has been calculated. https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-map In ::map, change window x/y to move it away from

Re: GTK app development for windows.

2013-01-30 Thread jcupitt
your program with gcc-mingw-w64. If you have many other dependencies, jhbuild is very convenient. I have a repro here which builds a setup.exe installer for a large application, including a lot of deps. https://github.com/jcupitt/build-win32/tree/master/7.30 John

Re: Stock Id's and Icons on buttons

2012-12-17 Thread jcupitt
/jcupitt/nip2/blob/master/src/main.c search for main_register_icons(). You're welcome to borrow any bits that look useful. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GUI freezes waiting for callback function to return

2012-12-13 Thread jcupitt
On 13 December 2012 11:21, Mateusz Marzantowicz mmarzantow...@osdf.com.pl wrote: I'm writing very simple application in Python using pygobject. I'm using What I've observed is that GUI (menu to be specific) freezes till my callback function finishes. It's completely unacceptable for GUI This

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread jcupitt
On 6 October 2012 15:48, Filip Lamparski matka.pooha...@gmail.com wrote: However, the thumbnail loading process takes a long time, so I want to put it into another process, with the GUI displaying a spinner or a progress bar until the loading finishes. Sorry, I don't use Python much, but in C

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread jcupitt
Sorry I missed the process bit. To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to your gtk main loop as an event source. You obviously can't use any gtk/glib stuff in your worker, you'd need to just make a .jpg, then do all the

Re: Partial frame synchronization TODO

2012-10-04 Thread jcupitt
This all sounds fantastic, but I have a stupid question: On Thursday, October 4, 2012, Owen Taylor wrote: * When there is a frame where no painting ends up being done, we still at the moment are sending increments to the frame serial and waiting for_NET_WM_FRAME_DONE. It may be worth

Re: Gtk_Tree_View, drawing speed

2012-09-26 Thread jcupitt
On 26 September 2012 07:09, Arne Pagel a...@pagelnet.de wrote: Do you see any other option? Have you tried setting the fixed-height hint on the treeview? By default treeview supports variable-height rows. This is great, of course, but there is a performance penalty: whenever the model changes,

Re: Infinite List

2012-09-14 Thread jcupitt
There was a useful thread last December about gtktreeview performance with large data sets: https://mail.gnome.org/archives/gtk-app-devel-list/2011-December/msg00092.html It included this very nice example of making a treeview with a custom model: http://pastebin.com/45br5X3Z You need to add

Re: parsing bibtex with GKeyFile parser

2012-09-06 Thread jcupitt
On 6 September 2012 13:01, Rudra Banerjee bnrj.ru...@yahoo.com wrote: I am thinking of possibility of parsing a bibtex file with gkeyfile parser. bibtex has the structure like: @Book{a, Author=b and q and r, s , Editor=c, Title=d, } GKeyFile syntax is not much like

Re: auto refresh file in textview

2012-08-24 Thread jcupitt
Hi Rudra, On 23 August 2012 13:45, Rudra Banerjee bnrj.ru...@yahoo.com wrote: whenever I am writing, it is saved, but to see the change, I have to reopen the file(obviously). What do you need to know? Do you want your textview to update as the file changes? If your program is appending to the

Re: auto refresh file in textview

2012-08-24 Thread jcupitt
On 24 August 2012 14:41, Rudra Banerjee bnrj.ru...@yahoo.com wrote: I am sorry but I really don't know how to write on a buffer. I append to a textview like this: void log_text( Log *log, const char *buf ) { GtkTextView *text_view = GTK_TEXT_VIEW( log-view ); GtkTextBuffer

Re: yet another thread question

2012-07-06 Thread jcupitt
Hi again David, On Friday, 6 July 2012, David Buchan wrote: When the user presses a button, an idle function is begun to watch a flag which will tell it a message has been left in a string for it by a worker thread. The worker thread is then started. It will produce results to be

Re: yet another thread question

2012-07-06 Thread jcupitt
On 6 July 2012 14:49, David Buchan pdbuc...@yahoo.com wrote: If I understand the first solution correctly, we're creating a separate idle function for each message. If the worker thread gets a bit ahead of the GUI updates, then a few idle functions might pile up. ok. But one thing I don't

Re: Another thread/idle/timeout question

2012-07-05 Thread jcupitt
complicated and I've misunderstood :( I use semaphores for hairier thread synchronisation problems. http://en.wikipedia.org/wiki/Semaphore_%28programming%29 I have a set of simple semaphore functions over the g_thread primitives: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs

Re: Threads and idle functions

2012-07-03 Thread jcupitt
Hi Igor, On Tuesday, 3 July 2012, Igor Chetverovod wrote Hi David, probably you should use macros: gdk_threads_enter () gdk_threads_leave (). Those macros were used to lock the main gdk thread in earlier versions of gtk if you wanted to call gtk_ functions from many threads. They are now

Re: GTK 2.24.10 memory leak on win32?

2012-07-03 Thread jcupitt
On 2 July 2012 15:44, Gabriele Greco gabriele.gr...@darts.it wrote: I'm posting the code here before creating a bugzilla entry for it since I'm not sure I can use g_idle_add to notify a new frame is available without freeing the source, that works in linux and in older WIN32 versions and it

Re: Porting Between Linux and Windows

2012-06-23 Thread jcupitt
On 16 June 2012 01:33, Eric Tavenner estaven...@gmail.com wrote: I am trying to teach myself C++.  My goal is to be able to write code for the same app in either Linux or Windows, and compile for both from the same code.  Is this possible? Yes, I have a largish C/C++ program which I can build

Re: Help with a multi-threaded application. Spot a crash.

2012-06-01 Thread jcupitt
Hi again Osmo, On 31 May 2012 17:50, Osmo Antero osm...@gmail.com wrote: Jcupitt: Ok, g_idle_add() seems to need protection by gdk_threads_enter() and leave(). Ref: http://developer.gnome.org/gdk/stable/gdk-Threads.html#gdk-threads-add-idle That's out of date. g_idle_add() does not need any

Re: Help with a multi-threaded application. Spot a crash.

2012-06-01 Thread jcupitt
On 1 June 2012 20:41, Chris Vine ch...@cvine.freeserve.co.uk wrote: jcup...@gmail.com wrote: That's out of date. g_idle_add() does not need any locking by you. I think you may be confusing this with the fact that with glib = 2.32 it is no longer necessary to call g_thread_init() to make glib

Re: Help with a multi-threaded application. Spot a crash.

2012-05-31 Thread jcupitt
On 31 May 2012 07:11, Osmo Antero osm...@gmail.com wrote: The actual code has also a LockedCounter (mutex controlled) object that feeds each thread with a unique sequence number. Only the thread with highest sequence number can tick and change the GUI, others will simply die away. I expect

Re: Getting the busy cursor to display.

2012-04-11 Thread jcupitt
On 10 April 2012 18:33, James Tappin jtap...@gmail.com wrote: Thanks for the suggestion. Unfortunately in this case it doesn't help. (I have also tried gdk_display_flush and gdk_window_flush, but still the same story). Here's a tiny test program that works for me with gtk2. It just uses:

Re: Getting the busy cursor to display.

2012-04-10 Thread jcupitt
On 10 April 2012 16:58, James Tappin jtap...@gmail.com wrote:      call gdk_display_sync(gdk_display_get_default())      call gdk_window_set_cursor(draw_window, busy_cursor)      call gdk_display_sync(gdk_display_get_default()) My gtk2 program does this with:

Re: problems understanding gtk3/gdk/cairo interaction

2012-04-06 Thread jcupitt
Hi Roger, You should do all drawing in the expose handler and nowhere else. Don't do any direct drawing in your data hander, instead update your model and queue an expose event. On 7 April 2012 02:16, Roger Davis r...@soest.hawaii.edu wrote: presumably this includes the GtkDrawingArea widget as

Re: Making a cursor (cross hair) track between image displays

2012-04-04 Thread jcupitt
Hi Jim, On 2 April 2012 17:00, Tilton, James C. (GSFC-6063) james.c.til...@nasa.gov wrote: When I place the cursor in one of the display images, I would like to have a cross hair appear at the cursor location of the window in which the cursor is placed at the location currently pointed to by

Re: Making a cursor (cross hair) track between image displays

2012-04-04 Thread jcupitt
On 4 April 2012 15:37, Tilton, James C. (GSFC-6063) james.c.til...@nasa.gov wrote: Your response is very helpful. The one key question that remains for me is: How do I draw a floating crosshair? You need to do it by hand, unfortunately, though it's not so hard (I think). The trick (in my

Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-07 Thread jcupitt
Hi Michael, Unfortunately I don't think this is easy. You need o do some kind of crazy hack, like realizing but not mapping the dialog, measuring the size you get, guessing the amount of chrome the theme is adding from that, then setting the default window size and finally mapping. I'd love to

Re: Scrollable object problem in GTK 2.20 (Windows)

2012-03-06 Thread jcupitt
Hi John, On 6 March 2012 09:38, John Emmas john...@tiscali.co.uk wrote: We're using GTK+ v2.20.0 which was current at that time. The Windows version has a peculiar problem The problem affects any scrollable / draggable object but the easiest example to explain is probably a scroll bar.

Re: gtk+ 2.24 installation problems

2012-03-04 Thread jcupitt
Hi Roger, On Saturday, 3 March 2012, Roger Davis r...@soest.hawaii.edu wrote: I then downloaded those sources and first built glib 2.27.93 with a simple './configure --prefix=/usr; make; make install;'. That went fine, Oh dear, I think you may have broken your system. You've overwritten files

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread jcupitt
Hi Roger, I moved a medium-sized (100k lines) application from Motif/X11 to gtk+ a while ago. As you say, gdk_ is a thin layer over the X11 drawing system, so converting that is pretty easy. Gdk has quite a few helpers too, eg. stuff for rendering a 24-bit image to whatever visual the server

Re: I want to fix a bug in GTK and need some guidance

2012-01-24 Thread jcupitt
Hi Noam, On 24 January 2012 10:12, Noam Yorav-Raphael noamr...@gmail.com wrote: Can someone guide me on how to compile GTK with debugging enabled, and how to compile a C program that would use the GTK I compiled, so I can run it under gdb and try to fix the bug? It's pretty easy. Download the

progress bar use

2012-01-16 Thread jcupitt
On Monday, 16 January 2012, Nick Belshaw nick.s.bels...@googlemail.com wrote: I would like to implement a progress-bar to make clear to users stuff is happening. Specifics involve loading and pre-processing of files. Some files might be very big requiring some 10's of seconds to do all stuff.

Re: RFC: new features

2012-01-14 Thread jcupitt
On 13 January 2012 22:21, Paul Davis p...@linuxaudiosystems.com wrote: there is a bigger issue there, i think. in an ideal world, you don't want to base the date store for the TreeView on an object, but on an interface.  then you want a series of adapters/wrappers that wrap data structures

Re: gobject-introspection and GBoxed

2012-01-13 Thread jcupitt
Hi Tomeu, On 12 January 2012 11:02, Tomeu Vizoso to...@sugarlabs.org wrote: Looks like a bug in pygobject, could you file a bug with a backtrace? It may be worth trying out with the latest release to scope better the problem. I've tried with git master gobject-introspection and 3.0.3

Re: RFC: new features

2012-01-12 Thread jcupitt
My 2p: DATA GRID I'd like to be able to display a grid of numbers with rectangular selection, a little like a spreadsheet. Unfortunately this is not possible with treeview. At the moment I use a fork of the ancient and broken GtkSheet widget, which is unfortunate. PLOTS As Jean said, goffice has

gobject-introspection and GBoxed

2012-01-11 Thread jcupitt
Hi all, I'm adding gobject-introspection support to my library. It's working well for the GObject classes, but I just can't get it to work for GBoxed objects. I'm sure I'm missing something obvious. Do I need to write an override to make a class for the type myself? I've spent some time googling

Re: maybe known, maybe not...

2012-01-08 Thread jcupitt
Hi Gary, On 8 January 2012 02:49, Gary Kline kl...@thought.org wrote: o am trying to have a run button fork off a new gvim and increase a global counter after the first gvim is closed.  my main gtk goes dark and nothing responds in this case.  i don't know if every If you do this:

Re: list troubles?

2011-12-16 Thread jcupitt
On 16 December 2011 08:17, Gary Kline kl...@thought.org wrote: i've asked what i thought were straightforeward quwstions recently. zip.  am i getting thru? The last mail I see from you in my mail archive is 2 days ago, saying thanks to Florian. Were there some more since then? John

Re: GtkTreeView very slow for large lists

2011-12-16 Thread jcupitt
2011/12/16 John Lindgren john.lindg...@aol.com: Lately I have been trying to improve the performance with large playlists (i.e. on the order of 100,000 entries).  The one remaining problem spot seems to be GtkTreeView.  I am attaching a simple test program that creates a GtkTreeView with 3

Re: GtkTreeView very slow for large lists

2011-12-16 Thread jcupitt
On 16 December 2011 10:36, jcup...@gmail.com wrote: 2011/12/16 John Lindgren john.lindg...@aol.com: Lately I have been trying to improve the performance with large playlists (i.e. on the order of 100,000 entries).  The one remaining problem spot seems to be GtkTreeView.  I am attaching a

Re: how to use hbox?

2011-12-12 Thread jcupitt
Hi Gary, 2011/12/11 Gary Kline kl...@thought.org:        well, i've reached a stumbling block.  the app i am working        on had things is a vertical stack.  so far, there about 6        rectangles.  the first shows the default title and the        count: Something like talk.0.txt Here's a

Re: GLIB for a webserver

2011-12-11 Thread jcupitt
Hi Marcelo, On 10 December 2011 23:05, Marcelo Elias Del Valle mvall...@gmail.com wrote:    Imagine the following scenario: the application running on my web server spends 20k of memory for each concurrent request. If I have enough concurrent requests in a way it will consume more memory than,

Re: GMenuModel has landed

2011-12-09 Thread jcupitt
On 9 December 2011 04:34, Allin Cottrell cottr...@wfu.edu wrote: On Thu, 8 Dec 2011, Ryan Lortie wrote: Today I landed the GMenuModel work on glib master [...] Menubars are no longer a per-window concept.  They are now set for the entire application.  This is done for two reasons:  1) every

Re: a couple questions...

2011-12-08 Thread jcupitt
Hi Gary, On 8 December 2011 01:00, Gary Kline kl...@thought.org wrote:        i'll need a play button and callback that invokes, say,        espeak -f on that file. Make a play button with gtk_button_new_from_stock(GTK_STOCK_PLAY):

Re: Focus behaviour on widget derived from a gtkentry

2011-12-07 Thread jcupitt
On 7 December 2011 09:16, Geert Janssens i...@kobaltwit.be wrote: I am now having problems to set the focus on this widget programmatically. In this particular use case, the widget is added to a GtkAssistant, and during the prepare of the page showing this widget, I call a gtk_widget_grab_focus

Re: obtain parent from menu callback

2011-11-28 Thread jcupitt
*button, Rowview *rview ) { do_stuff( rview ); } Source here, along with some other stuff. It's only 100 lines or so. https://github.com/jcupitt/nip2/blob/master/src/gtkutil.c John ___ gtk-app-devel-list mailing list gtk-app-devel

Re: gtk and linux

2011-11-03 Thread jcupitt
Hi Craig, On 3 November 2011 08:07, Craig craigbakal...@verizon.net wrote: Is there a list of linux flavors like Ubuntu, KDE, Red Hat... that include or don't include gtk? And, let's say that a type of linux I think all will include gtk, either as part of the standard install or available via

Re: GLib with Flex and Bison

2011-10-03 Thread jcupitt
On 3 October 2011 01:37, Craig craigbakal...@verizon.net wrote: I am about to try to use GLib in a Bison file, mainly calling functions on the GList Object.  I have never tried this before.  Will it work?  Are there any threading issues? Bison and flex don't use threads, so no, there's no

Re: Valgrind questions

2011-09-20 Thread jcupitt
I posted this the last time this subject came up (twice last year, I think), but I made this valgrind suppression file for my project:  http://www.vips.ecs.soton.ac.uk/development/nip2.supp Run with: $ export G_DEBUG=gc-friendly This makes Glib clear certain memory areas after using

Re: Valgrind questions

2011-09-20 Thread jcupitt
Hi Tom, On 20 September 2011 11:38, Thomas Harty t.har...@physics.ox.ac.uk wrote: Running like that, I still get quite a few leaks detected by valgrind. Some of them are created by g_type_add_interface_static, which looks like another type_init leak, which we can safely ignore. So, I've

Re: Fwd: Plans for GTK+ Bundles for win32 and win64?

2011-09-08 Thread jcupitt
On 8 September 2011 11:39, Alberto Ruiz ar...@gnome.org wrote: Third, and the most important. Windows has no package manager. You should not delegate on users the responsibility of making sure that a working copy of GTK is installed. This is annoying enough with Java. A .zip bundle (and maybe

Re: Detecting Ctrl Esc in GTK app

2011-08-30 Thread jcupitt
That lets you detect ctrl-esc anywhere on the desktop. If you only need to detect crtl-ecs within your window you can just set ControlEscape as an accelerator, see: http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html On 30 August 2011 06:33, czk czon...@gmail.com wrote: try

Re: Detecting Ctrl Esc in GTK app

2011-08-30 Thread jcupitt
Hi Andrew, You can add an accelerator to a window and it'll be called when that key combination is pressed. It doesn't need to be associated with a widget. However I think it's generally considered good form to have a menu item somewhere with the accelerator as a shortcut. That way the user can

Re: Detecting Ctrl Esc in GTK app

2011-08-30 Thread jcupitt
On 30 August 2011 15:22, Andrew Wood a@me.com wrote: How would you link it directly to the window then rather than to a widget? You can link a GClosure to a key press with this: http://developer.gnome.org/gtk3/stable/gtk3-Keyboard-Accelerators.html#gtk-accel-group-connect Parse ctrlesc to

Re: gtk assistant any good?

2011-08-19 Thread jcupitt
On 19 August 2011 16:13, Michal Suchanek hramr...@centrum.cz wrote: https://bugzilla.gnome.org/show_bug.cgi?id=656816 Could you explain the combobox navigation bug a little more? It seems to work for me. If I open GIMP preferences (for example) and tab to one of the comboxboxes there I can use

Re: Questions on creation of glyphs

2011-07-19 Thread jcupitt
Hi Ferdinand, I want to create a small set (say 5-10 symbols) of custom glyphs and want these symbols to be part of the alphabet of a fictional language. I also want to assign unused unicode values to these symbols and want these symbols to appear on my application as well as the terminal

Re: decrease widget show time

2011-03-20 Thread jcupitt
Hi, 2011/3/21 czk czon...@gmail.com: Following is my test program and test result: Obviously, most time spend on the last gtk_widget_show. You could try adding a call to realize, just before show(): gtk_widget_realize (window); This will do most of the initialisation, but not actually show

Re: I Miss Using My Anjuta IDE

2011-03-11 Thread jcupitt
On 11 March 2011 12:23, Craig Bakalian craigbakal...@verizon.net wrote: I don't know if this is the right place to complain about this, but ever since I update to 11.04 I have not been able to use Anjuta IDE. Hi Craig, 11.04 is still in development and is not finished. You should expect many

Re: custom gtkwidget destruction

2011-02-25 Thread jcupitt
On 24 February 2011 22:57, James Morris jwm.art@gmail.com wrote: I am wondering if in this case, as there is no extra data to destroy, is it really necessary for me to specify the destroy function? Put another way, by specifying the destroy function, am I duplicating by 'over-riding' the

Re: Viewport diagonal scrolling redraw

2011-02-16 Thread jcupitt
On 16 February 2011 04:48, Rendaw ren...@zarbosoft.com wrote: As a side note, does gdk_window_process_updates() preserve mouse motion events when the MOTION_HINT mask is set?  I also had motion event queuing problems (I would stop moving the mouse but the screen would continually redraw for a

Re: How gvdb_table_is_valid works on glib/dconf

2011-02-16 Thread jcupitt
On Wednesday, 16 February 2011, Joshua Lee muz...@gmail.com wrote: Then I run the test program, !!*data will always output 1. Here's the output. Isn't that expected behaviour? Data points to a non-empty string, so *data will always be non-zero. Therefore !*data will always be zero, therefore

Re: Re: How gvdb_table_is_valid works on glib/dconf??

2011-02-16 Thread jcupitt
On 16 February 2011 10:50, Joshua Lee muz...@gmail.com wrote: I'm curious why gvdb_table_is_valid works. Here's the implementation of gvdb_table_is_valid. gboolean gvdb_table_is_valid (GvdbTable *table) {  return !!*table-data; } Ah I see, sorry. This function will return 1 if table-data

Re: Memory leaks

2011-02-11 Thread jcupitt
I posted this the last time this subject came up (twice last year, I think), but I made this valgrind suppression file for my project: http://www.vips.ecs.soton.ac.uk/development/nip2.supp With this, I get no reported leaks in my huge (200,000 lines of C) application on Ubuntu with current

Re: Bring a widget to the foreground

2011-01-07 Thread jcupitt
On 7 January 2011 11:33, John Emmas john...@tiscali.co.uk wrote: Although I can now change the button's label font, the new font seems to be quite transitory and certain operations seem to reset it.  For example if (later) I change the label's text (e.g. if it currently says This message

Re: Bring a widget to the foreground

2011-01-04 Thread jcupitt
I agree, I was just trying to keep it simple. On Tuesday, 4 January 2011, Jaroslav Šmíd jardas...@gmail.com wrote: Don't do that. Fixed size buffers are evil for string formatting. You better use g_strdup_printf even though this would lead to reallocations. But much better then end up with

  1   2   3   >