Re: Gtk Graph drawing

2014-03-12 Thread Chris Moller
So far as I know, gtk_drawing_area_new and cairo are about it. On 03/08/14 11:18, Bill Vyzas wrote: Hi all, I want to draw some graphs and bar charts for some data I have and I am searching for any library available. I am using gtk+ with C. Do you have something in mind? A research on the

A bug or a screw up?

2014-05-07 Thread Chris Moller
a third label The problem is that the top of drawing area is lined up with the top of the enclosing vbox, or maybe at the top of the window, rather than at the bottom of the second label. Is there something new I'm missing? It didn't used to work that way. Thanks, Chris Mo

Re: A bug or a screw up?

2014-05-07 Thread Chris Moller
; GdkRGBA black = {0.0, 0.0, 0.0, 1.0}; gdk_cairo_set_source_rgba (cr, &black); cairo_rectangle (cr, 0.0, 0.0, DA_WIDTH, DA_HEIGHT); cairo_fill (cr); On 05/07/14 09:30, LRN wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07.05.2014 17:22, Chris Moller wrote: I just did a good-

Re: A bug or a screw up?

2014-05-07 Thread Chris Moller
On 05/07/14 12:50, Nicola Fontana wrote: Il Wed, 07 May 2014 09:22:48 -0400 Chris Moller scrisse: Is there something new I'm missing? It didn't used to work that way. Hi, I just removed what seems wrong to me (cairo_identity_matrix) and it appears t

Re: A bug or a screw up?

2014-05-07 Thread Chris Moller
ern-gtk-drawing-model/ and this bug: https://bugzilla.gnome.org/show_bug.cgi?id=700674#c10 both should explain the issue and the fix. ciao, Emmanuele. On 7 May 2014 18:03, Chris Moller wrote: Yep, that did it. And to think I stuck that in just to guarantee a known initial condition... S

Re: Hello world not show

2014-06-04 Thread Chris Moller
How did you compile it? Putting your code in a file called try.c and running the following: gcc -c try.c `pkg-config --cflags gtk+-3.0` gcc -o try try.o `pkg-config --libs gtk+-3.0` worked okay and running it put up an empty window. On 06/04/14 09:21, Zhengrong Zang wrote: I compiled code as

Re: Hello world not show

2014-06-04 Thread Chris Moller
On 06/04/14 10:55, Zhengrong Zang wrote: 2014/06/04 23:30?Florian HEGRON ??: $ gtk3-demo ** ERROR:/usr/src/ports/gtk3/gtk3-3.10.7-2.i686/src/gtk+-3.10.7/demos/gtk-demo/main.c:892:setup_default_icon: assertion failed: (pixbuf) Is there a cygwin package for pixbuf that is not installed ?

Re: Can array data be displayed in GTK? How?

2014-08-29 Thread Chris Moller
GtkGrid is probably your best option. On 08/28/14 23:59, Rajib Bandopadhyay wrote: Dear Sirs / Madams, Can array data be displayed in GTK? How this can be achieved? A c program generates data in the form of array that changes over time. How can I grab the data and display it in GUI colours? Eage

Re: Interactive data plotting application

2016-01-10 Thread Chris Moller
There's a great package out there called plplot that seems to do a lot of what you want to do, but I've never tried integrating it into GTK. I have a package on github (https://github.com/ChrisMoller/aplplot) that shows plplot in use if you want a quick look at how its used. By the way, you c

Re: Make parent aware of drag and drop

2016-10-18 Thread Chris Moller
Have you looked into g_signal_emit () in any of its variants? https://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-emit On 10/19/16 00:40, Jim Heald wrote: Hi, I have a slightly weird situation. I have two widgets that are both eventboxes, and I'm trying to make it possibl

Re: Watch for mouse

2016-10-21 Thread Chris Moller
Usually, that sort of thing is done by connecting to the enter-notify-event and leave-notify-event signals. You might have to add those events to the to the widget event mask with something like: gtk_widget_add_events (, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK ); But I have no idea if

GtkGLArea

2016-12-19 Thread Chris Moller
Over the last few days I wrote a little OpenGL/glut app and in the process noticed the existence of GtkGLArea. Giving it a try, I'm getting the strong impression it's not ready for prime time, at least not in GTK 3.18.8--I keep getting "Unable to create a GL context" errors. Will a newer GTK

Re: GtkGLArea

2016-12-19 Thread Chris Moller
From your response, it sounded like GtkGLArea should be working--I installed a newer version of GTK+ and it works fine. Cool. On 12/19/16 15:31, Emmanuele Bassi wrote: Hi; On 19 December 2016 at 20:05, Chris Moller wrote: Over the last few days I wrote a little OpenGL/glut app and in the

Re: deprecated gtk_cairo_create

2016-12-30 Thread Chris Moller
Generally, what you need is something like: cairo_surface_t *surface; static gboolean da_configure_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data) { surface = gdk_window_create_similar_surface (gtk_widget_get_window (widget),

Re: How to get a "traditional" file-chooser

2017-09-15 Thread Chris Moller
;style providers" and all the rest of it. Chris Moller On 09/15/17 14:50, Michael Torrie wrote: On 09/14/2017 10:56 PM, Daniel Kasak wrote: Come on. It's troll bait. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: How to get a "traditional" file-chooser

2017-09-16 Thread Chris Moller
e way, Stefan, your English is fine. On 09/16/17 06:06, Stefan Salewski wrote: On Fri, 2017-09-15 at 22:41 +0100, Emmanuele Bassi wrote: Additionally, modify_bg() has never done anything about sizing, Sometimes you seems to try very hard to misunderstand people? My English is not good, but I reall

Simple question...

2018-06-29 Thread Chris Moller
...but I can't figure it out:  How do I make a tiny little button, like 10x10 pixels, gtk_widget_set_size_request (button, 10, 10); doesn't work.  gtk_widget_size_allocate (GtkWidget *widget,    GtkAllocation *allocation); doesn't work. ( can't make anything work using CSS.  Nothing seems to wo

Re: Simple question...

2018-06-30 Thread Chris Moller
Thanks. I'm writing a complex-number spinbutton widget that needs two sets of up/down buttons, and the default buttons are just too bloody huge. Chris On 29/06/18 22:55, Michael Gratton wrote: On Sat, Jun 30, 2018 at 12:38 PM, Chris Moller wrote: ...but I can't figure it out:

Re: Simple question...

2018-07-01 Thread Chris Moller
to do things with. Chris On 01/07/18 10:06, Stefan Salewski wrote: On Fri, 2018-06-29 at 22:38 -0400, Chris Moller wrote: ...but I can't figure it out: How do I make a tiny little button, like 10x10 pixels, gtk_widget_set_size_request (button, 10, 10); doesn't work. gtk_widg

Re: GTK+ 4 suggestions

2018-07-22 Thread Chris Moller
All of which is why I'm slowly abandoning GTK for Qt.  GTK has been turned into an inflexible bureaucratic nightmare.  I can either spend my time trying to figure out how to outwit the limitations GTK has been saddled with, or I can spend my time learning a new toolkit.  The latter is far more

Re: How do I get the number

2018-10-07 Thread Chris Moller
Take a look at gint * gtk_tree_path_get_indices (GtkTreePath *path); with the  "GtkTreePath  *path"  parameter you get from the row-activated callback. https://developer.gnome.org/gtk3/stable/GtkTreeModel.html#gtk-tree-path-get-indices On 07/10/2018 20:04, Igor Korot via gtk-list wrote: H

Re: How do I get the number

2018-10-08 Thread Chris Moller
racteristics of the whole column. (See https://developer.gnome.org/gtk3/stable/GtkTreeViewColumn.html) On 08/10/2018 14:44, Igor Korot wrote: Hi, Chris, On Mon, Oct 8, 2018 at 12:11 PM Chris Moller wrote: Hi, Igor, The row-activated handler calls: void user_function (GtkTreeView

Re: How do I get the number

2018-10-08 Thread Chris Moller
── Time_Is_Tight.ogg     │   ├── Topless_Dancers_of_Corfu.ogg     │   └── Total_Bells_and_Tony.ogg     ├── Kitaro     │   ├── Silk_Road_II.ogg     │   └── Silk_Road_I.ogg     ├── Tomita     │   ├── Compilation On 08/10/2018 14:48, Igor Korot wrote: On Mon, Oct 8, 2018 at 12:11 PM Chris Moller wrote:

GTK+ documentation

2003-09-15 Thread Chris Moller
question is: Is there a "tagged text" version of the GTK docs I could use to extract the relevant info? Something that identifies function names as such, associated arg lists, etc. with SGML or Docbook semantic tags, or something similar. Thanks, Chris Moller S

Re: Scrollkeeper won't make-install

2003-09-17 Thread Chris Moller
Are you installing as root? Usually ${prefix} is empty and the permissions for /var/log are set to be writable only by root. Try sudo make install or su to root before doing make install. Chris Moller Red Hat Anthony wrote: How come I'm the only one asking questions about installing

Re: Refreshing window & other

2003-09-17 Thread Chris Moller
eturned progress_rc is set by a callback that catches the progress bar cancel button, allowing the user to stop things if desired. You could probably build a separate cancel button to do that. You can check the existance of a file with the "stat" library function; check the stat man p

Multi-thread problem

2008-09-23 Thread Chris Moller
ng threads (gdk_flush()/XFlush()) didn't help. Is there anything else I could try? Thanks, Chris Moller ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Question about Threads y gtk+

2008-10-03 Thread Chris Moller
Richard Boaz wrote: > Inexplicably (read: I don't know), there is no glib equivalent for the > function pthread_kill(). > Blowing a thread's brains out is generally a bad idea. The whole idea of threads is that they share address spaces and if you kill them at arbitrary times it's not impossib

Re: How to install GTK in linux

2008-11-02 Thread Chris Moller
Jean Bréfort wrote: > You should add /usr/local/lib to your /etc/ld.so.conf > And then run /sbin/ldconfig (as root) ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: How to debug helloworld gtk+ application

2009-01-15 Thread Chris Moller
N1829 wrote: > Hi, > > I am totally new for linux and gtk+. I want to debug sample gtk+ program in > ddd. > Does your code fail the same way without using the debugger? Looks like ddd/gdb can't find a shared library, which might mean the problem is in your gtk+ installation. (The shared symbo

Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread Chris Moller
american.communist.pa...@gmail.com wrote: > Its old hat to C programmers that you set any object to NULL when > you're done with it, which returns the memory used to the heap. That's specifically /not/ true in C: You have to explicitly free allocated space--setting a pointer to null doesn't auto

Re: dynamically growing 2D aray of structues

2009-11-26 Thread Chris Moller
On 11/26/09 12:23, Ian Liu wrote: You can always map a 2d coordinate intto 1d: (i, j) -> i * w + j where w is the width of the matrix That works poorly for dynamic arrays--every time you resize the array, in either dimension, you basically have to copy all the elements to new locations. Th

Re: What are eggs?

2010-01-01 Thread Chris Moller
On 01/01/10 09:31, Behdad Esfahbod wrote: I've heard stories about eggs and bacon Particularly if you're on the right mailing list at the right company... :-) and breakfast, that kind of stuff. Cheers, behdad Thanks! Dov ___ gtk-list mailing

Re: Creating an app with optional GTK support

2010-05-14 Thread Chris Moller
On 05/14/10 06:26, Andreas Falkenhahn wrote: Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser dialog. The rest is done entirely in X11. However, the GTK support shall be optional. If GTK is there, then my app will use the GTK file chooser. If GTK is not

Dumb question

2006-03-07 Thread Chris Moller
"whatever"), or just gtk_button_new() and gtk_container_add() various things (labels, labels in boxes, etc) to the button later. Anyone have a clue what's happening? Thanks, Chris Moller Red Hat signature.asc Description: OpenPGP digital signature _

Re: Dumb question

2006-03-07 Thread Chris Moller
Much appreciated, and thanks for saving me a couple of months. cm Mark Leisher mumbled something on 03/07/2006 11:39 AM: Not so dumb. I struggled with this one for a couple months. I discovered with GTK+ 2.7 and later that when creating subclasses of GtkContainer, you *have* to impl