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 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: 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: 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: 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

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: 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: 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

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

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: 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: 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

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
libgtk2.0-dev at least. 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: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
executable named foo from C source foo.c: CC = gcc -g -O2 -Wall # or to taste CFLAGS = `pkg-config --cflags gtk+-2.0` LIBS = `pkg-config --libs gtk+-2.0` foo: foo.c $(CC) $(CFLAGS) -o @$ $ $(LIBS) Allin Cottrell ___ gtk-app-devel-list mailing list gtk

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Allin Cottrell wrote: On Sat, 5 Mar 2011, Craig Bakalian wrote: So are the libraries actually there? ls -al /usr/lib/libgtk-x11-2.0* There should be a symlink, something like /usr/lib/libgtk-x11-2.0.so - libgtk-x11-2.0.so.0.2000.1 This is what I get

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
, and figured out what symbols it needs from the shared libraries. If it worked otherwise before, it was only by the grace of God. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Allin Cottrell
(gtk_tree_model_get_iter_first(model, iter)) { gtk_combo_box_remove_text(box, 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: gtk3 migrating document and drawing

2011-02-18 Thread Allin Cottrell
On Fri, 18 Feb 2011, Javier Jardón wrote: On 13 February 2011 18:13, Allin Cottrell cottr...@wfu.edu wrote: It seems that the section of the gtk-migrating-2-to-3 doc as distributed with gtk 3.0.0 is not up to date with the state of the drawing code in the release. For example, it still

Re: gtk3: FileChooser schema not found

2011-02-15 Thread Allin Cottrell
; in both cases an application cannot be expected to run correctly if missing. If a UI file is missing, I agree, it's all over. No point in showing a blank window. But a file selector can surely have reasonable default behavior; it did in gtk2. Allin Cottrell

Re: gtk3: FileChooser schema not found

2011-02-14 Thread Allin Cottrell
On Sun, 13 Feb 2011, Allin Cottrell wrote: I have glib 2.28.0 installed, along with gtk 2.24.0 and gtk 3.0.0. Calls to the FileChooser in my app work as expected in 2.24, but in 3.0.0 they produce: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed

Re: gtk3: behavior of gtk_widget_set_size_request

2011-02-13 Thread Allin Cottrell
On Sun, 13 Feb 2011, Tristan Van Berkom wrote: On Sun, Feb 13, 2011 at 5:49 AM, Allin Cottrell cottr...@wfu.edu wrote: I'm using gtk_widget_set_size_request on a GtkTreeView that gets embedded in a scrolled window which in turn is embedded in a larger window -- setting the width to 120

gtk3 migrating document and drawing

2011-02-13 Thread Allin Cottrell
-to-date and precise documentation. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk3: FileChooser schema not found

2011-02-13 Thread Allin Cottrell
org.gtk.Settings.FileChooser.gschema.xml is installed in $prefix/share/glib-2.0/schemas (2133 bytes). -- 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

drawing with GTK 3.0

2011-02-12 Thread Allin Cottrell
= data; plot-cr = gdk_cairo_create(window); /* ?? */ gdk_cairo_set_source_pixbuf(plot-cr, plot-pixbuf, 0, 0); gdk_cairo_rectangle(plot-cr, rect); cairo_fill(plot-cr); cairo_destroy(plot-cr); } -- Allin Cottrell Department of Economics Wake Forest University

Re: drawing with GTK 3.0

2011-02-12 Thread Allin Cottrell
On Sat, 12 Feb 2011, Allin Cottrell wrote: I've got my app to build against gtk 3.0 but I'm having trouble getting some drawing code ported... Ah, I now see what part of my problem was: I hadn't looked up the latest signature for the GtkWidget draw callback. I had this as void plot_draw

gtk3: behavior of gtk_widget_set_size_request

2011-02-12 Thread Allin Cottrell
like 120), and its width doesn't respond even if I double the request. Am I missing some change in the widget-sizing code? Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: Memory leaks

2011-02-09 Thread Allin Cottrell
missing Tor's point. Yes, all memory leaks are bad, but most (all?) of the instances of not-explicitly-released memory in the GTK stack are _not_ leaks. If you still have a pointer to it, it ain't a leak, even if a dumb debugger says so. Allin Cottrell

gtk 2.16.6 for win32 on gnome.org

2011-02-09 Thread Allin Cottrell
. -- 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.16.6 for win32 on gnome.org

2011-02-09 Thread Allin Cottrell
to look for built-in engines). They are where they should be, in lib/gtk-2.0/2.10.0/engines . Sorry for the noise -- for some reason I didn't see them at first. Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Memory leaks

2011-02-09 Thread Allin Cottrell
On Wed, 9 Feb 2011, John Emmas wrote: On 9 Feb 2011, at 20:06, Allin Cottrell wrote: You're missing Tor's point. Yes, all memory leaks are bad, but most (all?) of the instances of not-explicitly-released memory in the GTK stack are _not_ leaks. If you still have a pointer

Re: Memory leaks

2011-02-09 Thread Allin Cottrell
is any good it will do the job just as efficiently or better. 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: Memory leaks

2011-02-09 Thread Allin Cottrell
file when I'm checking my app's memory use. 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.99.3 released

2011-02-04 Thread Allin Cottrell
.) 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.99.3 released

2011-02-04 Thread Allin Cottrell
On Fri, 4 Feb 2011, Allin Cottrell wrote: On Fri, 4 Feb 2011, Matthias Clasen wrote: On Fri, Feb 4, 2011 at 2:15 PM, craigbakalian craigbakal...@verizon.net wrote: Is there a glib version I should download and install?  There are many on the the Gtk+ site.  I don't know what one

Re: gtk_main_quit() causes sigfault (win32)

2010-11-15 Thread Allin Cottrell
g_main_context_dispatch causes the error. Any Idea? valgrind 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 or 3

2010-10-27 Thread Allin Cottrell
at GTK 2, but build your program using the G_SEAL and other defines to make sure your program will compile with GTK 3 when it is stable. Right now, GTK 3 is a moving target and developing for it is likely to be quite frustrating. So I second the when it is stable point. Allin Cottrell

Re: which gtk-win32 version to use?

2010-09-27 Thread Allin Cottrell
more likely to manifest itself as some part of the GUI not working correctly, rather than an outright crash. 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.22.0 released

2010-09-23 Thread Allin Cottrell
-config when I try configuring GTK+ 2.22.0: Requested 'glib-2.0 = 2.25.10' but version of GLib is 2.24.2 Requested 'gdk-pixbuf-2.0 = 2.21.0' but version of GdkPixbuf is 2.20.1 Allin Cottrell ___ gtk-app-devel-list mailing list gtk-app-devel-list

  1   2   3   >