Plotting Library for Gtkmm-3.0 - PlotMM

2015-02-08 Thread Jim Charlton
compiles on MAC OS X 10.10 with the gtk/gtkmm osx libraries installed. To obtain the package, go to http://jimc.dyndns.org/Mod-Plotmm. Jim Charlton ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk

Re: Plotting Library for Gtkmm-3.0 - PlotMM

2015-02-10 Thread Jim Charlton
On 15-02-10 12:50 AM, Murray Cumming wrote: On Sun, 2015-02-08 at 09:08 -0800, Jim Charlton wrote: A recent post about charting and plotting software for gtk-3.0 encouraged me to share some modifications I have made to the PlotMM library originally made available by Andy Thaller (http

Problem with MessageDialog boxes

2015-01-06 Thread Jim Charlton
. Any hints as to what I might do to get my messagedialog boxes back to normal (other than using an older version of the libraries)? jim... Jim Charlton ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

Re: Fwd: Gtk3 MacOS (OSX) context menu issues

2015-03-15 Thread Jim Charlton
and the margins will disappear on the popup menu boxes avoiding the selection problem. No need to install an alternate theme. Please excuse the errors in the previous posting. jim... Jim Charlton On 15-03-14 10:02 PM, Jim Charlton wrote: To answer part of my own question I am using my own gtk3 theme

Re: Fwd: Gtk3 MacOS (OSX) context menu issues

2015-03-14 Thread Jim Charlton
://forum.xfce.org/viewtopic.php?pid=36005. jim... Jim Charlton | On 15-03-14 09:11 PM, Jim Charlton wrote: A further note on the context menu issues If one runs gtk3-demo and right clicks in the open pane on the lower right a context menu opens. If one carefully slides the cursor pointer

Re: Fwd: Gtk3 MacOS (OSX) context menu issues

2015-03-14 Thread Jim Charlton
of last year... https://mail.gnome.org/archives/commits-list/2014-April/msg01392.html ?? Or is there a way to change the css margin of popups to see if that will cure the problem... ?? H...? jim... Jim Charlton On 15-03-14 09:25 AM, Konstantin Dmitriev wrote: Hello, Jim! 2015-03-14

Re: borderless MacOS menus (was 'Gtk3 MacOS (OSX) context menu issues')

2015-03-15 Thread Jim Charlton
On 15-03-15 10:40 AM, Roger Davis wrote: Hi all, Thanks to Jim Charlton for the nice fix (or workaround) on the context menu problem! I've had a MacOS menu problem for some time which may be related to this, but as it's a bit off-topic re: the context menu thread I've started a new thread

Re: borderless MacOS menus (was 'Gtk3 MacOS (OSX) context menu issues')

2015-03-16 Thread Jim Charlton
On 15-03-15 08:24 PM, Jim Charlton wrote: On 15-03-15 01:49 PM, Roger Davis wrote: Thanks for the suggestion, Jim, but no luck so far in getting any change to my menu borders via .window-frame, .window-frame:backdrop { box-shadow: 6px 6px; margin: 6px; } which I added to a new

Re: borderless MacOS menus (was 'Gtk3 MacOS (OSX) context menu issues')

2015-03-15 Thread Jim Charlton
like my system is flat-out never drawing any menu borders no matter what. Roger On Sun, 15 Mar 2015, Jim Charlton wrote: My experience has been that I can set the XDG_CONFIG_HOME environment variable to the path to the gtk-3.0 directory (eg. /opt/local/share/themes/Default) and then put both

Re: Fwd: Fwd: Gtk3 MacOS (OSX) context menu issues

2015-03-18 Thread Jim Charlton
issues To: Jim Charlton char...@gmail.com Hello, Jim! 2015-03-15 21:25 GMT+06:00 Jim Charlton char...@gmail.com: With the default MacPorts installation of gtk3, one can set XDG_CONFIG_HOME to /opt/local/share/themes/Default and then include the gtk.css file with .window-frame, .window-frame:backdrop

Re: Fwd: Gtk3 MacOS (OSX) context menu issues

2015-03-19 Thread Jim Charlton
On 15-03-19 12:13 AM, Konstantin Dmitriev wrote: 2015-03-19 13:05 GMT+06:00 Konstantin Dmitriev ksee.zelga...@gmail.com: Hello! 2015-03-15 22:32 GMT+06:00 Konstantin Dmitriev ksee.zelga...@gmail.com: Hello, Jim! 2015-03-15 21:25 GMT+06:00 Jim Charlton char...@gmail.com: With the default

Re: Gtk3 MacOS (OSX) context menu issues

2015-03-20 Thread Jim Charlton
. Hope this helps, Roger Jim Charlton wrote: I certainly should have mentioned that my observations were made under the MAC OS X 10.10 (Yosemite) operating system. I too have not been able to observe this problem under Linux (Ubuntu). As Konstantin has pointed out, it does not seem possible

Re: How to make a GtkButton respond to a key press

2015-03-06 Thread Jim Charlton
On 15-03-06 06:52 AM, Michael Torrie wrote: On 03/05/2015 09:31 PM, Jim Charlton wrote: I presume you have a callback function connected to the button press event. Just create code to intercept the keyboard event and go to a callback function that sees what key was pressed and then calls

Re: Gtk3 MacOS (OSX) context menu issues

2015-03-14 Thread Jim Charlton
I forwarded to the list. Thanks for the response. jim... On 15-03-14 09:07 AM, Jim Charlton wrote: Hi Konstantin: I wrote to the list earlier to say that I could reproduce the problem that you have identified. I am using MAC Yosemite 10.10 in a VirtualBox VM. To investigate further, I

Re: Gtk3 MacOS (OSX) context menu issues

2015-03-14 Thread Jim Charlton
libraries. But maybe if we keep working on it, a solution will appear. It would be good to verify that this problem occurs on a real MAC and not just on a virtual machine. Cheers... jim... Jim Charlton, On 15-03-05 09:17 AM, Konstantin Dmitriev wrote: 2015-03-03 15:01 GMT+06:00 Vest . vest

Re: Gtk3 MacOS (OSX) context menu issues

2015-03-10 Thread Jim Charlton
libraries on another machine. Go figure...?? Certainly something strange going on. jim... Jim Charlton On 15-03-05 09:17 AM, Konstantin Dmitriev wrote: 2015-03-03 15:01 GMT+06:00 Vest . vest...@gmail.com: Hello Konstantin, I apologize that I probably cannot help you, but I am curious. Do you

Re: gtk3 (GtkTextView) and MacOS

2015-02-27 Thread Jim Charlton
the fonts that I am getting. But I just thought that I would mention that there is still some magic going on that I, for one, do not understand. jim... Jim Charlton On 15-02-25 10:35 PM, Roger Davis wrote: Hi all, So I finally have my problem fully solved for now, and here is a summary

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Jim Charlton
is then used over the embedded default. If memory serves me correctly... I was able to copy themes from Linux to the Mac and use them. jim... JIm Charlton On 15-02-24 11:18 PM, Roger Davis wrote: Hi all, I have an application suite built on gtk3 which is targeted at both Linux

Re: gtk3 (GtkTextView) and MacOS

2015-02-25 Thread Jim Charlton
(*pfd); This implies that GtkTextView uses pango font descriptors. Perhaps you can use the GtkWidget.modify_font() method that will accept a PangoFontDescription. jim... Jim Charlton On 15-02-25 03:56 PM, Roger Davis wrote: Thanks, Jim, your hint on setting XDG_CONFIG_HOME led me

Re: How to make a GtkButton respond to a key press

2015-03-05 Thread Jim Charlton
with the user being able to hit a select keyboard key or click the button (although I am using gtkmm3). jim... Jim Charlton ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How can I retrieve gtk style context information from textview widget class without a textview widget?

2015-06-12 Thread Jim Charlton
On 15-06-12 05:04 AM, Friedrich Beckmann wrote: Hi, I would like to use the style information from the textview widget in another context. I want to retrieve the text foreground color and the background color as it would be used in a textview widget and use this style information for

Re: detaching a notebook tab

2015-07-06 Thread Jim Charlton
It works fine for me on gtk3. I am running on linux and the version of gtk3 is the most recent in the repository, I believe (3.10.8-0ubuntu1.5). Depends: libgtk-3-common (= 3.10.8), libatk-bridge2.0-0 (= 2.5.3), libatk1.0-0 (= 2.7.5), libc6 (= 2.14), libcairo-gobject2 (= 1.10.0),

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Jim Charlton
the dimensions of layout2. Is that what you wanted? jim charlton On 15-07-27 01:10 AM, Damien Caliste wrote: Hello, Le 21/07/2015, Roger Matthews roger.matth...@hotmail.com a écrit : which results from a simple straight line equation, and*/ /* that extends beyond the bounds of the window

Re: gtk_text_buffer_delete ?

2015-10-07 Thread Jim Charlton
On 15-10-07 04:14 AM, Pierre Wieser wrote: Hello, On the application I'm currently working on [1], I want limit the size of the text entered in a GtkTextBuffer to those saved in the DBMS, so 4096 chars. I so connected to the 'changed' signal of the GtkTextBuffer, and the handler is : static

Re: Using fork() in a GTK C/Vala application

2015-09-01 Thread Jim Charlton
On 15-09-01 07:27 AM, rastersoft wrote: In fact, I'm already using pipes and more; I can just replace the Thread call with a fork() and everything will work fine. The only idea I see I can use is to physically separate both process in different binaries and use named pipes... On 01/09/15 16:05,

Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Jim Charlton
I use gtkmm and get screen size before opening the application window in order to make sure it fits on the display. the equivalent gtk/gdk calls (I think) use gtk_window_get_screen() to get the gdk window from the gtk window. Then from the gdk window I use gdk_window_get_height() to get

Re: Empty Space in Dialog Box

2016-06-06 Thread Jim Charlton
On 16-06-06 05:05 PM, Rena wrote: On Mon, Jun 6, 2016 at 7:23 AM, Kamalpreet Grewal wrote: I am developing a dialog box. I have added a treeview and two buttons in it. Adding the treeview to the scrolled window using: _mainBox.pack_start(_scrolledWindow,

Re: example in the gtkmm 3 docs is not working

2016-03-25 Thread Jim Charlton
Replace "auto" with "Glib::RefPtr". Then it works... jim... On 16-03-25 08:20 PM, Peter Wiehe wrote: Hello! The example in the gtkmm 3 docs is not working: https://developer.gnome.org/gtkmm-tutorial/stable/sec-basics-simple-example.html g++ says: 'app' does not name a type I use:

Re: Gtk+ newb: Some basic infos

2016-04-15 Thread Jim Charlton
I found that "Programming with gtkmm 3" (see https://developer.gnome.org/gtkmm-tutorial/stable/) to be very helpful. jim... On 16-04-14 01:58 PM, Peter Wiehe wrote: Hello, I want to program C++ applications with a GUI, but I am new to Gtk+ and gtkmm programming. 1.) What are the really

Re: gtk3 and fork/exec of non-gtk child

2017-01-14 Thread Jim Charlton
On 2017-01-14 01:51 PM, Eric Cashon via gtk-app-devel-list wrote: Hi Roger, A little while back I was testing something similar with g_spawn_async_with_pipes(). It is neither mission-critical or meticulous but something I was just testing for the possible use with gnuplot. There is a

Re: Debugging propagated events

2016-11-28 Thread Jim Charlton
In Gtkmm (C++) you can overload the on_draw() function with your own. This might give you a foothold in the on_draw() routine that is called after a redraw event occurs. I guess in GTK you would have to connect a callback function to the "draw" signal. Might help.?? jim... On 2016-11-28

Re: deprecated gtk_cairo_create

2017-01-06 Thread Jim Charlton
g/rendering to the on_draw() event calls of the various drawing areas. jim... Jim Charlton 2016-12-30 18:15 GMT+03:00 Sergei Kolomeeyets <kolomeey...@gmail.com>: Hi, Emmanuele thanks for not leaving me alone with my first attemts to navigate through 'uncharted' water of GTK+3.

Re: deprecated gtk_cairo_create

2016-12-30 Thread Jim Charlton
On 2016-12-30 05:45 AM, Colomban Wendling wrote: Hi, Le 30/12/2016 à 12:20, Sergei Kolomeeyets a écrit : Hi, everyone […] {draw_callback} gboolean draw_callback(GtkWidget *area, GdkEventExpose *event, GArray *ptLinePoints) { That's not the right signature for the GtkWidget::draw signal: it

Re: Glade crash

2017-03-09 Thread Jim Charlton
om/file/d/0B1s7dNPGsJ3CYlRvNTltbU1NWDA/view?usp=sharing> [2] https://drive.google.com/file/d/0B1s7dNPGsJ3CZWdCZkR2R1pEUEU/view?usp=sharing <https://drive.google.com/file/d/0B1s7dNPGsJ3CZWdCZkR2R1pEUEU/view?usp=sharing> 2017-03-03 17:23 GMT+01:00 Jim Charlton <j...@jimc.fa

Re: Glade crash

2017-03-05 Thread Jim Charlton
I have no problem opening this file and deleting rows in the fan store. I am using glade-3.20 on Ubuntu-16.10 with gtk-3.20. Notably, this file opens but does not display its contents correctly when I try to open it with glade-3.19 on Ubuntu-16.04 with gtk-3.18 (although it does not crash).

Re: Unable to capture mouse events of GtkGLArea

2018-07-02 Thread Jim Charlton via gtk-app-devel-list
Joe: I program in Gtkmm so my advice may not be applicable but... What I do to get a png file of an image is to 1. Get a pointer to the cairo context (cr) from what is passed to the on_draw() callback from your image widget. 2. in the callback, execute cr->pop_group_to_source(); 3. create a