Re: GTK3 + gnuplot

2018-09-18 Thread Allin Cottrell
ixbuf, then stick the GdkPixbuf onto a cairo surface. You could take a look at https://sourceforge.net/p/gretl/git/ci/master/tree/gui/gpt_control.c in particular the function render_pngfile(). -- Allin Cottrell Department of Economics Wake Forest Universit

Re: Updating displayed spinbutton value from a text file

2018-07-05 Thread Allin Cottrell
(GtkSpinButton *spin_drawingparameter1, int drawingparameter1); Try gtk_spin_button_set_value(GTK_SPIN_BUTTON(spin_drawingparameter1),... You have a broken attempt at a cast. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk

Re: gtk_init_with_args behavior

2018-05-21 Thread Allin Cottrell
On Mon, 21 May 2018, tito-wolit wrote: On 21/05/2018 01:27, Allin Cottrell wrote: gtk_init_with_args is still useful in my case: it automatically screens out any command-line arguments that are just option flags or parameters, via the GOptionEntry mechanism, leaving only a filename argument

Re: gtk_init_with_args behavior

2018-05-20 Thread Allin Cottrell
tf8. So my workflow is: GetCommandLineW CommandLineToArgvW convert array of UTF-16 strings to UTF-8 pass the converted array to gtk_init_with_args Allin Cottrell ref: https://mail.gnome.org/archives/gtk-app-devel-list/2018-May/msg00052.html and following _

Re: gtk_init_with_args behavior

2018-05-19 Thread Allin Cottrell
nds like what I need. Is there such a thing as a standard way to hook this up with gtk_init_with_args? I can imagine calling GetCommandLineW, then CommandLineToArgvW, but then? If you converted the UTF-16 strings to UTF-8, could you then pass the array to gtk_init_with_args? Allin Cottrell O

gtk_init_with_args behavior

2018-05-18 Thread Allin Cottrell
re, of course, the file cannot be opened. I'm not sure if it's Windows itself that is making this substitution or gtk. I'd be grateful if anyone could shed any light on the matter. -- Allin Cottrell Department of Economics Wake Forest University ___ g

Re: gtk on windows 10

2018-03-09 Thread Allin Cottrell
-much-native appearance on Windows 10 out of the box when using gtk2 with the MS-Windows theme and the libwimp engine (which is the default on Windows). Latest version 2.24.32. If you're using features specific to gtk3, of course, that won't do it for you. Allin Cottrell

Re: GTK menus on Ubuntu

2016-10-13 Thread Allin Cottrell
On Tue, 11 Oct 2016, Jason Benjamin wrote: On Wed, 5 Oct 2016 21:11:41 -0400 (EDT) Allin Cottrell <cottr...@wfu.edu> wrote: I'm wondering if anyone knows the machanism whereby Ubuntu "commandeers" the main menu system of a GTK application and sticks it into the global top-of

GTK menus on Ubuntu

2016-10-05 Thread Allin Cottrell
_set_sensitive). So I'm trying to figure out if there's any way to protect my menus from mangling -- or failing that, to frame a well-informed bug report to Ubuntu. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list m

Re[5]: argv revisited

2016-05-05 Thread Allin Cottrell
ility. In many years of reading this list I don't think I've ever come across such a boorish and pig-headed poster. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://ma

Re[2]: Re[2]: Compiling for Windows [Was: argv revisited]

2016-05-03 Thread Allin Cottrell
. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Compiling for Windows [Was: argv revisited]

2016-05-03 Thread Allin Cottrell
tiple per-application copies of GTK, but you just have to get over it. Basically the same on Mac OS X. (I might note: even on Linux, GTK updates are not necessarily harmless. For example, updating from GTK 3.18 to 3.20 breaks emacs and gnumeric; they still run, but they're damaged.) Alli

Re: set custom entry background?

2015-11-16 Thread Allin Cottrell
On Mon, 16 Nov 2015, Emmanuele Bassi wrote: Hi; On 15 November 2015 at 19:32, Allin Cottrell <cottr...@wfu.edu> wrote: I'm trying to set a custom background for a GtkEntry (as a temporary thing, by way of an alert for invalid input). I can do that fine for gtk 2 using gtk_widget_modif

Re: set custom entry background?

2015-11-16 Thread Allin Cottrell
On Mon, 16 Nov 2015, Stefan Salewski wrote: On Sun, 2015-11-15 at 19:30 -0500, Allin Cottrell wrote: But how can I "undo" this? (I mean, make it so that the background color for the selected state reverts to what it was before I messed with it, for subsequent selections.) That

set custom entry background?

2015-11-15 Thread Allin Cottrell
); gtk_render_background(context, cr, r.x, r.y, r.width, r.height); } -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: set custom entry background?

2015-11-15 Thread Allin Cottrell
On Mon, 16 Nov 2015, Stefan Salewski wrote: On Sun, 2015-11-15 at 14:32 -0500, Allin Cottrell wrote: I'm trying to set a custom background for a GtkEntry I think you have to use CSS -- unfortunately that is some work and I can not provide an example yet. See https://developer.gnome.org/gtk3

Re: set custom entry background?

2015-11-15 Thread Allin Cottrell
On Sun, 15 Nov 2015, Allin Cottrell wrote: On Mon, 16 Nov 2015, Stefan Salewski wrote: On Sun, 2015-11-15 at 14:32 -0500, Allin Cottrell wrote: I'm trying to set a custom background for a GtkEntry I think you have to use CSS -- unfortunately that is some work and I can not provide

Re: g_error_free() warning on null pointer

2015-08-15 Thread Allin Cottrell
() getting a NULL argument is a coder expecting NULL - no-op semantics by analogy with C's free(). What sort of bug would you have in mind? @McConville: the standard most relevant to your argument is the ISO C standard, not POSIX. Allin Cottrell ___ gtk

Re: detaching a notebook tab

2015-07-07 Thread Allin Cottrell
. The first two are OK, but 3.14.13 segfaults (see the code in my first message). Does this happen on master as well? I can check that this evening. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

Re: detaching a notebook tab

2015-07-06 Thread Allin Cottrell
and cflags from `pkg-config gtk+-3.0 --libs` `pkg-config gtk+-3.0 --cflags`. Thanks, Jim. I guess this means that the problem was introduced after gtk 3.10. I wonder if 3.12 and 3.14 are OK too. -- Allin Cottrell Department of Economics Wake Forest University, NC

Re: detaching a notebook tab

2015-07-06 Thread Allin Cottrell
On Mon, 6 Jul 2015, Allin Cottrell wrote: My app has a collection of objects which can be viewed either individually or in a tabbed viewer based on GtkNotebook. When objects are being viewed in the latter way, the user is supposed to be able to drag an object out of the tabbed viewer

detaching a notebook tab

2015-07-06 Thread Allin Cottrell
case for dragging a tab out of a notebook onto the root window Allin Cottrell cottr...@wfu.edu, 2015-07-06 */ static GtkNotebook *detach_tab_callback (GtkNotebook *book, GtkWidget *page, gint x, gint y

Re: Should we drop XP?

2015-03-31 Thread Allin Cottrell
, if gtk2 is itself considered legacy (though personally I stil like it fine), why drop XP support? -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman

Re: Should we drop XP?

2015-03-31 Thread Allin Cottrell
On Tue, 31 Mar 2015, Emmanuele Bassi wrote: Hi; On 31 March 2015 at 21:58, Allin Cottrell cottr...@wfu.edu wrote: so I was wondering if for 3.18/2.46 if we should drop XP. I think it would make our life easier and anyway why do we need to support something that microsoft is also

Re: GTK+, WM, desktops and CSD

2015-03-05 Thread Allin Cottrell
to get the job done efficiently), who greatly appreciates gtk and codes using both gtk2 and gtk3, and occasionally submits patches for both, and who doesn't care for CSD: Go, Olivier! I hope your suggestions have an impact. -- Allin Cottrell Department of Economics Wake Forest University

Re: GTK+, WM, desktops and CSD

2015-03-05 Thread Allin Cottrell
On Thu, 5 Mar 2015, Florian Müllner wrote: The worst thing that can happen when the toolkit forcefully rips CSD from applications is that there is no more UI to save, navigate, load or whatever essential UI the applications happens to put into its decorations. Isn't there some dissonance

Re: GTK+, WM, desktops and CSD

2015-03-05 Thread Allin Cottrell
On Thu, 5 Mar 2015, Paul Davis wrote: On Thu, Mar 5, 2015 at 5:44 PM, Allin Cottrell cottr...@wfu.edu wrote: On Thu, 5 Mar 2015, Florian Müllner wrote: The worst thing that can happen when the toolkit forcefully rips CSD from applications is that there is no more UI to save, navigate, load

Re: GTK+, WM, desktops and CSD

2015-03-05 Thread Allin Cottrell
On Fri, 6 Mar 2015, Florian Müllner wrote: On Fri, Mar 6, 2015 at 12:44 AM Allin Cottrell cottr...@wfu.edu wrote: Isn't there some dissonance here: essential UI embedded in decorations? How did we come to this? [...] why not fix the WM [...] rather than conflating UI with decoration

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Allin Cottrell
to subsequent runs of your gtk program on OS X. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

horizontal size of GtkToolButton

2015-01-12 Thread Allin Cottrell
talking about at http://users.wfu.edu/cottrell/tmp/buttons.html Thanks for any help! -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo

gtktreeview: highlighting a cell

2014-12-12 Thread Allin Cottrell
? (In this comparison I'm using the Adwaita theme with gtk 2.24.25 and 3.14.5.) Thanks for any guidance. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https

Re: Plotting library for GTK+

2014-12-02 Thread Allin Cottrell
effectively in slave mode and can produce a wide variety of output formats (notably, using cairo and pango). Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

RE: Re: Plotting library for GTK+

2014-12-02 Thread Allin Cottrell
, it's not the ideal solution (using a library would be cleaner) but it works quite nicely. You can generate a plot in batch mode using gnuplot's pngcairo terminal and load the PNG into a GTK window. Allin Cottrell ___ gtk-app-devel-list mailing list

Re: g_spawn*() on windows

2014-07-03 Thread Allin Cottrell
simple, as Windows goes. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk 2.24.24 cross-gotcha

2014-06-26 Thread Allin Cottrell
On Thu, 26 Jun 2014, Matthias Clasen wrote: On Wed, Jun 25, 2014 at 4:58 PM, Allin Cottrell cottr...@wfu.edu wrote: Just in case anyone else falls into this: there's a potential gotcha if you're cross-compiling gtk for (say) Windows on Linux. It took me a while to figure out why the Windows

gtk 2.24.24 cross-gotcha

2014-06-25 Thread Allin Cottrell
of experimentation. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_spawn_sync and child PID

2014-03-16 Thread Allin Cottrell
On Sat, 15 Mar 2014, Colomban Wendling wrote: Le 15/03/2014 21:19, Allin Cottrell a écrit : I'm reasonably familiar with the usage of both g_spawn_sync and g_spawn_async, but recently I've found myself wanting to do domething that seems to fall between the two and I can't quite work out how

g_spawn_sync and child PID

2014-03-15 Thread Allin Cottrell
, can hang at 100% CPU if one or more of the processes launched by mpiexec bombs out at just the wrong moment.) Any suggestions on how to achieve this using g_spawn* (or judgements on whether it's even possible) would be gratefully received. -- Allin Cottrell Department of Economics Wake

Re: final gtk+maverick battles

2014-02-16 Thread Allin Cottrell
. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: final gtk+maverick battles

2014-02-14 Thread Allin Cottrell
mess-up of old and new GLib/GTK? This is not really a gtk-app-devel question. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re-open closed bugreport

2014-02-13 Thread Allin Cottrell
crappier with Gtk3.10. +1. I can confirm that this bug is present in GTK 3.10.6 on Fedora 20, and that's _with_ Adwaita. It only affects some dialogs. -- Allin Cottrell Department of Economics Wake Forest University___ gtk-devel-list mailing list gtk

Re: Re-open closed bugreport

2014-02-13 Thread Allin Cottrell
On Thu, 13 Feb 2014, Emmanuele Bassi wrote: hi; On 13 February 2014 16:22, Allin Cottrell cottr...@wfu.edu wrote: +1. I can confirm that this bug is present in GTK 3.10.6 on Fedora 20, and that's _with_ Adwaita. It only affects some dialogs. instead of saying this on the mailing list, could

Re: Is this a cast?

2013-10-11 Thread Allin Cottrell
the parenthesis can actually go around the type or the variable, correct? No. In a regular C cast you can't put the parentheses around the variable name. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman

Re: Removal of icons in buttons/menus

2013-10-10 Thread Allin Cottrell
rewrite my GTK code. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: Icon/image in menu with GtkUIManager and GtkAction in GTK+ 3.10

2013-10-03 Thread Allin Cottrell
, effective immediately. Like Sébastien, I hope that's not the case. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK+ 3.10 released

2013-09-24 Thread Allin Cottrell
-text.) Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK free function doesn't appear to have any affect.

2013-06-15 Thread Allin Cottrell
. GtkListStore inherits directly from GObject. Is this piece of code itself ok? Certainly not. void main() is not valid C for a start (main must return int), then the first loop runs off the end of the str_type array... Allin Cottrell ___ gtk-app-devel-list

modifying gtksettings on Windows

2013-06-10 Thread Allin Cottrell
the MS-Windows theme the default, in gtksettings.c (2011-11-01). I can see it makes sense to default to the MS-Windows theme, but how do you change the font in that case? -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app

modifying gtksettings on Windows: follow-up

2013-06-10 Thread Allin Cottrell
) possible that I'm missing something, but unless I hear to that effect I'll file a bug. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

strange crash on Windows XP

2013-05-02 Thread Allin Cottrell
(1.29.4) gtk+-2.24.17 (2.24.10) -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Updating GUI during long operation

2013-04-25 Thread Allin Cottrell
the GUI from looking dead. Inside the numerical procedure I have something like if (iter % k == 0 activity_callback != NULL) { activity_callback(); } Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https

Re: GTK+3 win32/64 build environment

2013-04-10 Thread Allin Cottrell
? That's right. And these days you don't need special versions of the gcc and binutils sources; the primary packages work fine so long as you pass the right magic to the configure script. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list

Re: Is GTK+ a cross-platform toolkit ?

2013-03-06 Thread Allin Cottrell
an eye open for bug reports. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: gtk-quartz status

2013-03-03 Thread Allin Cottrell
On Sat, 2 Mar 2013, Paul Davis wrote: On Sat, Mar 2, 2013 at 12:08 PM, Allin Cottrell cottr...@wfu.edu wrote: I recently did a native quartz build of the GTK stack on OS X 10.6.8, using gtk+-2.24.16 along with latest-stable versions of GLib and all other dependencies (including FreeType

gtk-quartz status

2013-03-02 Thread Allin Cottrell
. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: building gtk+ 3 on rhel6

2013-01-13 Thread Allin Cottrell
of third party software. Right now, to build current pango you need an rc version of fontconfig. To avoid that, drop back to the previous pango release. (Pango's configure script is pretty tight-lipped about dependency problems, which is not very helpful.) Allin Cottrell

Building GTK with Quartz backend

2013-01-12 Thread Allin Cottrell
I'd like to try building GTK with its Quartz backend, to see if it's currently solid enough to distribute with the Mac version of my app. Can anyone with recent experience tell me if I'm better off targetting GTK 2.24 or GTK 3.6? Thanks. -- Allin Cottrell Department of Economics Wake Forest

Re: Where to put graphic elements so I can find them again

2012-09-02 Thread Allin Cottrell
it to be themeable. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Allin Cottrell
till I was blue in the face, to no avail. I also tried inserting debugging statements much like yours, but couldn't work exactly where the problem lay. Eventually I just gave up on using GtkPrintOperation on Windows. I hope you have better luck! -- Allin Cottrell Department of Economics Wake

Re: Porting Between Linux and Windows

2012-06-23 Thread Allin Cottrell
++ are separate languages and although C++ interfaces for GTK are available (gtkmm) the more standard development path is to use C with GTK. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

gtk_container_add and vboxes

2012-05-31 Thread Allin Cottrell
-base. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

querying a style property

2012-03-25 Thread Allin Cottrell
(gtk_widget_path_get_object_type (path), pspec-owner_type)' failed (repeated 5 times) and is not filling out val. Am I doing something wrong here or is this a bug? Thanks. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app

Re: gtk+-2.20.10, gdk-pixbuf-2.24.1 OpenWrt install fail

2012-03-14 Thread Allin Cottrell
/ (I don't know about your other question.) Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: gtksourceview 2.11.2 compile problem.

2012-03-09 Thread Allin Cottrell
release for gtk+-2.0. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk+ 2.24 installation problems

2012-03-03 Thread Allin Cottrell
of glib 2.28, and the most recent bug-fix variant of glib-2.28 is 2.28.7, so that would be the version of choice -- if you want to avoid possible dependency issues in updating to the current stable version, 2.30. Allin Cottrell ___ gtk-app-devel-list

Re: memory leak on windows

2012-03-02 Thread Allin Cottrell
the main window is destroyed. (Modified code attached.) -- Allin Cottrell Department of Economics Wake Forest University, NC #include gtk/gtk.h static gboolean progressbar_pulse (gpointer data) { gtk_progress_bar_pulse(GTK_PROGRESS_BAR(data)); return TRUE; } static gboolean stop

Re: gtk+ 2.24 installation problems

2012-03-02 Thread Allin Cottrell
, consider the environment variable PKG_CONFIG_PATH. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk 2.24 on Windows

2012-01-28 Thread Allin Cottrell
On Sat, 28 Jan 2012, z...@excite.it wrote: On Friday 27 January 2012 22:11:52 Allin Cottrell wrote: For a long time I've built the Windows version of my app against gtk 2.16 (and included the corresponding runtime in the app's installer). After hearing of progress with gtk 2.24 on Windows I

gtk 2.24 on Windows

2012-01-27 Thread Allin Cottrell
this paints in the content, line by line. Other sorts of window saw their contents appear and then disappear. Any ideas what's going on here? (The gtk 2.16 build works fine on the same system.) -- Allin Cottrell Department of Economics Wake Forest University

Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-17 Thread Allin Cottrell
On Tue, 17 Jan 2012, Tristan Van Berkom wrote: 2012/1/17 David Nečas y...@physics.muni.cz: Hence    Are you sure you want to quit without saving ? Should typically have the answers: Save Quit is nonsense.  This question should not occur in a sensible GUI no matter what answers are

strncat and UTF-8

2012-01-03 Thread Allin Cottrell
the UTF-8 representation of some character. I can sort of see how this might be done (rather painfully) using the GLib Unicode Manipulation API but I wonder if anyone has a snappy implementation -- something like g_utf8_strncat(), if it were to exist. Allin Cottrell

Re: GLIB for a webserver

2011-12-08 Thread Allin Cottrell
) OS can tell when it receives a huge request for memory that it definitely cannot honor. In that case -- where memory is not currently exhausted -- it's much preferable if the app can report Can't do it to the user rather than aborting. Allin Cottrell

Re: GMenuModel has landed

2011-12-08 Thread Allin Cottrell
are not one-trick ponies. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: GTK+ 2.24.8

2011-11-11 Thread Allin Cottrell
at the moment to build everything from scratch :( Me too! It would be great to have updated packages on gtk.org. -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Severe treeview performance regression (Gtk2 - gtk3)

2011-10-20 Thread Allin Cottrell
scrolling via Trackpad. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: Severe treeview performance regression (Gtk2 - gtk3)

2011-10-20 Thread Allin Cottrell
On Thu, 20 Oct 2011, Clemens Eisserer wrote: Hi Allin, (a) gtk-2.24.7 and friends (latest stable stack) (b) gtk-3.2.1  and friends (again, all latest stable) I can't detect any difference in the scrolling performance in the two cases; it seems quite acceptable in both. This is on Linux

pango -- prevent line break?

2011-10-19 Thread Allin Cottrell
GtkTextTagTable, and using gtk_text_buffer_insert_with_tags_by_name to wrap the option strings. But, alas, it doesn't help: the monospace font is applied OK, but I still get line breaks after --. Any suggestions would be appreciated. -- Allin Cottrell Department of Economics Wake Forest

Re: GLib 2.31.0

2011-10-19 Thread Allin Cottrell
On Wed, 19 Oct 2011, Ryan Lortie wrote: At long last, GLib 2.31.0 has been released. Thanks, the change log is impressive! One question: should we consider this release latest stable GLib or is the odd minor version number a sign of work-in-progress? Allin Cottrell

Re: circular dependency between glib and pkg-config

2011-09-28 Thread Allin Cottrell
-config --libs zlib, pkg-config --cflags zlib). The effect of the calls to pkg-config is to define ZLIB_LIBS and ZLIB_CFLAGS, but these could equally well be set manually. Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http

printing from gtksourceview on Windows

2011-09-25 Thread Allin Cottrell
if this might be a known issue that is solved in more recent gtk, or if there's any known workaround for use with gtk 2.16.6. Thanks! -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: multiple filters in GtkFileChooser

2011-09-14 Thread Allin Cottrell
On Tue, 13 Sep 2011, Allin Cottrell wrote: I have found the relevant difference between gtk 2.24.5 and 2.24.6, which has the effect -- on my system at least -- that the filter selection combo box is not displayed correctly in the gtk file chooser when using 2.24.6. It's the added material

Re: multiple filters in GtkFileChooser

2011-09-14 Thread Allin Cottrell
On Wed, 14 Sep 2011, Bernhard Schuster wrote: 2011/9/14 Allin Cottrell cottr...@wfu.edu: On Tue, 13 Sep 2011, Allin Cottrell wrote: I have found the relevant difference between gtk 2.24.5 and 2.24.6, which has the effect -- on my system at least -- that the filter selection combo box

multiple filters in GtkFileChooser

2011-09-13 Thread Allin Cottrell
this was working OK with an earlier gtk version.) -- Allin Cottrell Department of Economics Wake Forest University, NC ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: multiple filters in GtkFileChooser

2011-09-13 Thread Allin Cottrell
On Tue, 13 Sep 2011, Bernhard Schuster wrote: Can you supply a minimal example where it fails? That would help to find the culprit. I am atm at gtk 2.24.6 so if you can post that I give it a run... Thanks! I'm attaching a minimal case. Allin Cottrell/* Test program for adding multiple

Re: multiple filters in GtkFileChooser

2011-09-13 Thread Allin Cottrell
and replaced gtk 2.24.6, and the problem I was seeing has gone away. I'll try peering at the differences in the code between those versions. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: multiple filters in GtkFileChooser

2011-09-13 Thread Allin Cottrell
On Tue, 13 Sep 2011, Bernhard Schuster wrote: 2011/9/13 Allin Cottrell cottr...@wfu.edu: On Tue, 13 Sep 2011, Bernhard Schuster wrote: Can you supply a minimal example where it fails? That would help to find the culprit. I am atm at gtk 2.24.6 so if you can post that I give it a run

Re: GTK and OSX: a call to sanity

2011-09-09 Thread Allin Cottrell
, guys, and keep up the cooperation! Allin Cottrell ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: drag'n'drop sample application

2011-09-07 Thread Allin Cottrell
at a simpler level (with source code, obviously) ? I'm attaching a little test program that I once used for diagnosing GTK dnd problems on Windows. Allin Cottrell /* Test program for drag and drop with two sorts of targets available. Allin Cottrell (cottr...@wfu.edu), March 2003. */ #include

Alt-key mnemonics in menus

2011-09-05 Thread Allin Cottrell
of context. Any idea on what might account for the difference? I'm wondering if I've inadvertantly done something that disables Alt-key within menus but I don't know what that could be. -- Allin Cottrell Department of Economics Wake Forest University, NC

Re: Alt-key mnemonics in menus

2011-09-05 Thread Allin Cottrell
On Mon, 5 Sep 2011, Allin Cottrell wrote: I've noticed that in my GTK app Alt-key mnemonics work like this: pressing Alt-F, for example, opens the _File menu, but once you're in the menu pressing Alt-N does not activate _New, although pressing plain N does so. In various other GTK apps both

Re: gtksourceview-2.0 with custom paths

2011-08-24 Thread Allin Cottrell
_before_ the first call to gtk_source_buffer_new() but not after. Allin Cottrell Il giorno lun, 22/08/2011 alle 20.00 -0400, Allin Cottrell ha scritto: First off, sorry if this is the wrong place to ask. I see from http://projects.gnome.org/gtksourceview//development.html

gtksourceview-2.0 with custom paths

2011-08-22 Thread Allin Cottrell
or not the standard styles directory was visible or hidden (renamed) at runtime. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: destroying an unparented widget

2011-05-06 Thread Allin Cottrell
of a widget which is allocated off-screen and then nominally destroyed, but which then shows up in valgrind as leaking. On Thu, 5 May 2011, Allin Cottrell wrote: There's one thing I've never quite understood: the correct mechanism for destroying a gtk widget that is never parented or shown

destroying an unparented widget

2011-05-05 Thread Allin Cottrell
from GTK saying I can't do that on an object which has only a floating reference. Would the correct sequence be label = gtk_label_new(); g_object_ref_sink(G_OBJECT(label)); /* do pango stuff */ g_object_unref(G_OBJECT(label)); ? And if so, is there an equivalent in GLib 2.10? Thanks. -- Allin

Re: gtk_widget_destroy(my_window) memory leak

2011-05-04 Thread Allin Cottrell
On Wed, 4 May 2011, jessonel wrote: Have ever reported the memory leak of gtk_widget_destroy? Yes, hundreds of people. Have you heard of a useful tool called google? 99.9 percent of such leak reports are bogus, reflecting lack of knowledge of how memory management works in the GTK stack. Allin

Re: Is there a way to send some user-defined value while creating a gtk-window??

2011-04-29 Thread Allin Cottrell
to a gtk widget using the function g_object_set_data() -- and can then retrieve it with g_object_get_data(). See the section The Base Object Type in the GObject Reference Manual. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk

Re: cross-compiling glib-1.2

2011-03-29 Thread Allin Cottrell
On Tue, 29 Mar 2011, joey kuo wrote: while I run configure in glib-1.2.5, I got error message saying checking for extra flags to get ANSI library prototypes... configure: error: can not run test program while cross compiling. google: cross-compiling glib Allin Cottrell

Re: Gtk 3.0 Build

2011-03-28 Thread Allin Cottrell
won't work. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk 3.0 Build

2011-03-28 Thread Allin Cottrell
On Mon, 28 Mar 2011, Craig Bakalian wrote: Yes, Yes. I just read through this subject, or gleaned it. Is there an code example of theme - ing in gtk3.0 anywhere in internet land? If you want to see how the CSS works, take a look at adwaita.css. Allin Cottrell

Re: GTK3 porting problem (clipboard)

2011-03-10 Thread Allin Cottrell
composite) and (b) the functionality that was previously available via the struct itself is not replicated via accessor functions. For example, there's no gtk_target_list_get_n_targets() to replace the original poster's GTK2 idiom: int nTargetCnt = g_list_length (list-list); Allin Cottrell

  1   2   3   4   >