Re: GTK window winthout main iterator

2018-09-04 Thread James Cameron
nal? > > thanks > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- James Cameron http://quozl.netrek.org/ ___ gtk

Re: PyGObject: pep8 konform

2018-06-01 Thread James Cameron
E402 -- James Cameron http://quozl.netrek.org/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Using a TextView as a sort of "Hbox with wrapping"

2014-01-26 Thread James Tappin
Chris, If I interpret what you are trying to do correctly (not necessarily a given), then I would have thought that GtkScrolledWindow (possibly in conjunction with GtkViewport) would be the tool for the job. James On 26 January 2014 14:50, Chris Angelico wrote: > My application has a sta

Re: Get column no. of edited cell.

2013-06-02 Thread James Tappin
Another possibility would be to use g_object_set_data to give the renderer a column number, and g_object_get_data in the handler. On 2 June 2013 07:15, dE wrote: > On 06/02/13 00:27, Arnel A. Borja wrote: > >> On Sunday, 02 June, 2013 01:44 AM, dE wrote: >> >>> I've set the "editable" property

Floating point exception in functions called from gtk_main_iteration_do

2013-02-01 Thread James Tappin
.so.0 #20 0x77164c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #21 0x769a9f71 in gtk_main_iteration_do () from /usr/lib/libgtk-3.so.0 #22 0x004059c8 in cl_handlers::pending_events () at /home/james/Dev/gtk-fortran-3/examples/hl_cairo_clock.f90:72 #23 0x00

g_timeout handling, is this the best way?

2012-11-20 Thread James Tappin
I have a program that uses a g_timeout loop to control the display of a sequence of plots (produced via plplot), and I need to be able to change the delay between displaying the plots. The method I am using is this: 1. Use g_timeout_add_full to create the timeout, with the GSourceFunc as a

Re: Lack of gtk_application_get_window_by_id function despite of documentation

2012-11-17 Thread James Tappin
On 17 November 2012 16:05, Jakub Kucharski wrote: > I was trying to compile my application and it appears that one documented > function called 'gtk_application_get_window_**by_id' ( > http://developer.gnome.org/**gtk3/stable/GtkApplication.** > html#gtk-application-get-**window-by-id

Re: Examples of ComboBox using an explicit model?

2012-07-31 Thread James Tappin
Thanks to those who send examples on or off list. With the guidance of those I was able to figure out how the different bits fit together and get a working code. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https

Examples of ComboBox using an explicit model?

2012-07-30 Thread James Tappin
at uses an explicit tree model without any success. Does anybody on this list have such an example (or even better, of a CellRendererCombo) that they would be willing to share. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome

g_value_set_instance -- how to use?

2012-07-23 Thread James Tappin
There is very little documentation that I can find explaining how g_value_set_instance is supposed to work. Is the following anywhere near correct? void my_gvalue_setter( const GValue *gv, gpointer val, Gtype type) {

Re: How can I check if a GtkWidget exists?

2012-07-20 Thread James Morris
cenario where you'd use them and will probably only cause confusion. James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Threads and idle functions

2012-07-02 Thread James Morris
On 3 July 2012 02:10, James Morris wrote: > (sorry forgot list) > On 3 July 2012 01:50, David Buchan wrote: >> My understanding is that child threads must never alter the UI in any way. >> >> If I have a program which spawns a child thread to download some data and I &g

Re: Threads and idle functions

2012-07-02 Thread James Morris
lso seems to support this view: http://developer.gnome.org/glib/2.31/glib-The-Main-Event-Loop.html#glib-The-Main-Event-Loop.description your child/download thread does the monitoring of the error status and when an error is found, use g_idle_add to wait some moments and then communicate the er

Re: custom widget theme change problem

2012-06-21 Thread James Morris
On 22 June 2012 01:50, James Morris wrote: >> Can anyone give any pointers as to what might be happening? > > I've found the culprit, or put another way, I've found what to comment > out to fix the problem. > > In my custom_widget_realize callback it has the foll

Re: custom widget theme change problem

2012-06-21 Thread James Morris
Hello again, Seems to be a habit of mine here, I ask a question, don't get an immediate response and then look further into it and find some sort of solution... On 21 June 2012 10:42, James Morris wrote: > Hi, > > I have a custom GTK widget which renders using Cairo. In the exp

custom widget theme change problem

2012-06-21 Thread James Morris
, after switching to a different notebook tab, I can see previously hidden instances of the custom widget have been updated (switching notebook tabs back again does not trigger update). Can anyone give any pointers as to what might be happening? Thanks, James. GTK 2.24.10

Re: GtkFileChooser selection-changed signal emission on gtk_dialog_run()

2012-06-14 Thread James Morris
On 14 June 2012 16:54, James Morris wrote: > Hi, > > I've got a problem with the "selection-changed" signal being emitted > as soon as gtk_dialog_run is called on a GtkFileChooserDialog. I tried > delaying connection of the callback until right before calling > gt

GtkFileChooser selection-changed signal emission on gtk_dialog_run()

2012-06-14 Thread James Morris
callback. I am now using g_timeout_add as a work-around to delay connection of the signal to my callback and thus prevent the four initial "selection-changed" emissions activating the callback. Is this normal? Is there a more standard way of doing this? I'm using GTK 2.24.10 in 64

Re: How do I fix the window size?

2012-06-05 Thread James Tappin
On 5 June 2012 12:50, Ferdinand Ramirez wrote: > --- On Tue, 6/5/12, James Tappin wrote: > > > I think the solution is to place the treeview in a gtk_scrolled_window > > rather than using an hbox and an explicit scrollbar. > > The reason for trying out with an explicit

Re: How do I fix the window size?

2012-06-05 Thread James Tappin
On 5 June 2012 11:00, Ferdinand Ramirez wrote: > I have a treeview and a scrollbar which are both within a hbox. The hbox > is within a window. When I expand the treeview, the window resizes itself > to include the whole treeview. > > The biggest problem is when the treeview has more elements tha

Multiple selections in list/treeview widgets and accelerator groups?

2012-06-01 Thread James Tappin
that does work is that the top-level window has an accelerator group in the application and not in the demo. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk-app to search google scholar

2012-05-25 Thread James Morris
f March 2012, Google Scholar is not yet available to the Google AJAX API." So I would guess there will not be any simple C code to achieve what you want. James. > Best and Regards, > -- > Rudra Banerjee > > If possible, plz. don't send me MsWord/PowerPoint mails. W

RE: probable gtk_window_present and pango help

2012-05-18 Thread Tilton, James C. (GSFC-6063)
Also consider "hiding" your window (with a call to window->hide()) instead of destroying it, and making it reappear with a call to window->show(). Jim Tilton -Original Message- From: gtk-app-devel-list-boun...@gnome.org [mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of David N

Re: GtkTable cells resizing

2012-05-17 Thread James Steward
On 15/05/12 14:45, Tristan Van Berkom wrote: On Mon, May 14, 2012 at 10:29 PM, James Steward wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: ... perhaps it's worth trying an extra call to gtk_widget_queue_resize() after modifying your table. I'm trying

Re: GtkTable cells resizing

2012-05-14 Thread James Steward
led, which calls gtk_plot_canvas_paint(GTK_PLOT_CANVAS(canvas)); But the table rows seem to expand to the largest canvas and don't seem to take on variable heights. Feel I've been around and around the mulberry bush on this ;-) Regards, James. On Mon, May 14, 2012 at 9:21 PM, James Ste

GtkTable cells resizing

2012-05-14 Thread James Steward
this? Regards, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Trouble with button mask

2012-05-13 Thread James Steward
Stupid question below. Please ignore. James. On 14/05/12 15:47, James Steward wrote: Hi, I've been trying to get a canvas select item event to fire for a gtk_plot_canvas. Upon left clicking inside a plot canvas, I can see that gtk_plot_canvas_button_press(...) gets called, an

Trouble with button mask

2012-05-13 Thread James Steward
y a GDK_BUTTON1_MASK isn't read when I left click? Regards, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 10:51, James Tappin wrote: > > I'm now really confused -- I've reordered some of the code so that the > set_cursor call precedes putting a message in the status bar. And the > status bar updates but not the cursor. > OK: I think I've figured it.

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 09:25, James Tappin wrote: > > > On 11 April 2012 04:36, wrote: > >> On 10 April 2012 18:33, James Tappin wrote: >> > Thanks for the suggestion. Unfortunately in this case it doesn't help. >> (I >> > have also tried gdk_display_fl

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 04:36, wrote: > On 10 April 2012 18:33, James Tappin 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&#

Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 11:36, Michael Cronenworth wrote: > James Tappin wrote: > > Is there some other call (or calls) I should be making to force the > updates > > to take place? > > I use the following for widget updates during background processing: > >

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

2012-04-10 Thread Tilton, James C. (GSFC-6063)
associated gtkmm windows. Jim Tilton -Original Message- From: gtk-app-devel-list-boun...@gnome.org [mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of Tilton, James C. (GSFC-6063) Sent: Tuesday, April 10, 2012 9:28 AM To: gtk-app-devel-list@gnome.org Subject: RE: Making a cursor (c

Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 10:09, wrote: > On 10 April 2012 16:58, James Tappin 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

Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
I have a gtk (fortran) application that displays a progress monitor while computing, and I would like to display the busy cursor while the program is reading a large data file. Right now what I have is: To define the busy cursor and GDK window (module [global] variables). draw_window = gtk_wi

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

2012-04-10 Thread Tilton, James C. (GSFC-6063)
hange the default appearance of my cursor from the default cursor to something else (e.g. a CrossHair) in gtkmm 3? Thanks. Jim Tilton -Original Message- From: gtk-app-devel-list-boun...@gnome.org [mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of Tilton, James C. (GSFC-6063)

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

2012-04-04 Thread Tilton, James C. (GSFC-6063)
Thanks John, Your response is very helpful. The one key question that remains for me is: How do I draw a "floating crosshair"? Thanks. Jim ____ Dr. James C. TiltonVoice: 301-286-9510 NASA Goddard Sp

Making a cursor (cross hair) track between image displays

2012-04-02 Thread Tilton, James C. (GSFC-6063)
ay.) Thanks. Jim Tilton ____ Dr. James C. TiltonVoice: 301-286-9510 NASA Goddard Space Flight Center FAX: 301-286-1776 Mail Code 606.3E-Mail: james.c.til...@na

Trouble with TreeView

2012-03-21 Thread James Steward
345123 | 0.051234 3 | Snafu | 0.765432 | 0.145678 Is there a way to suppress the display of some columns that don't make sense for the parent node, I.e. columns 1, 2, 3 in row 0? Regards, James. ___ gtk-app-devel-list mailing list

An issue with Qt styling and/or threads?

2012-02-17 Thread James Tappin
ot sure if the problem is with the Qt wrapper, Gtk+ or my code. FWIW I'm running Debian stable, with Gtk+ 2.20. Any ideas? James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: misc and a question...

2011-12-28 Thread James Steward
On 29/12/11 11:05, Gary Kline wrote: ... due to people on this list who have been patient and 'splained things ... and who have NOT said: 'go read the man page' --well, nutshell, in ~ 3 weeks, i'm starting to see how gtk works. i just learned that TRUE == 1 and not 0. i haven't used the acce

Re: no luck with dialogs and ecrooolbars, and gtktext..

2011-12-20 Thread James Morris
> n Tue, Dec 20, 2011 at 02:52:10PM -0800, Gary Kline wrote: >>         text = gtk_text_view_new(); >>         gtk_container_add(GTK_CONTAINER(window),text); >>         buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text)); >> " >> and fopen some file and display the text in the buffer.  The >> qu

Re: how to use hbox?

2011-12-11 Thread James Tappin
2011/12/11 Gary Kline : >        can somebody help me figure out how to pack the buttons >        horizontally, or is is not possible to mix hbox and vbox? It should be as simple as: make the vbox put the various items in it, including the hbox put the increase & decrease buttons in the hbox. Tha

Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-30 Thread James Steward
On 30/11/11 20:04, Tadej Borovšak wrote: Hi. 2011/11/30 James Steward: col = gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (view), -1, "Title", renderer, "text", i,

Re: Alignment of markup labels in menu items

2011-11-30 Thread James Tappin
On 30 November 2011 11:31, James Tappin wrote: > there is a problem with alignment: while > a plain text label is correctly centred in the pulldown menu, a markup > label begins at the centre (even if it does not actually include any > markup). I should add, the problem does not man

Alignment of markup labels in menu items

2011-11-30 Thread James Tappin
I'm trying to add the capability to add a label formatted with Pango markup to buttons and menu items in the "high-level" interface to gtk-fortran. While the following is successful in producing subscripts in labels when the markup flag is set, there is a problem with alignment: while a plain text

gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-29 Thread James Steward
yout)' failed Can anyone spot what I've done wrong? There's no compiler warnings, just this runtime error. -- James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: 'irregular shaped' windows without deprecated gdk code or compositing

2011-08-01 Thread James Morris
On 31 July 2011 23:24, James Morris wrote: > Hi, > > It appears that the 'irregularly shaped' windows which used to be > possible by using now-deprecated GDK code even without full > compositing available, are no longer possible using non-deprecated > code. > >

'irregular shaped' windows without deprecated gdk code or compositing

2011-07-31 Thread James Morris
sk instead, but gdk_bitmap_create_from_data is of course deprecated. The docs do at least suggest cairo alternatives, but none of which are compatible with gdk_window_shape_combine_mask. Please please tell me if there's anyway around this mess. I can't force or assume use of co

Re: Append to list store doesn't get all column attributes

2011-07-27 Thread James
On Thu, 2011-07-28 at 07:08 +0200, Florian Müllner wrote: > Hey, > > 2011/7/28 James > In a dialog with a scrolled window displaying a list, with one > column in > the view, where the cells are editable; > > > gtk_tree_view_in

Append to list store doesn't get all column attributes

2011-07-27 Thread James
gtk_tree_view_set_cursor(GTK_TREE_VIEW (view), p, c, TRUE); gtk_widget_grab_focus (view); The item "New" is indeed appended to the list, and it scrolls to the correct cell, however "New" is not editable, and no matter what I've tried,

Re: Making widgets visible outside their containing window

2011-07-13 Thread James Morris
n. The fans are not bounded by any window the widget is associated with. There might be some pointers in there for how to do what you want, but note it's unmaintained code by now, and also contains some deprecated code. http://phat.berlios.de/ James. __

gobject and gtk_widget_set_sensitive

2011-07-04 Thread James Morris
quot;state-changed" signal to set_sensitive on all the widgets? Cheers, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Changing a GtkToolButton icon_widget on the fly

2011-06-22 Thread James Morris
On 22 June 2011 05:43, James wrote: > Hi, > > I've been trying to change the icon_widget that's displayed for a > toolbar button while the main window is displayed.  I can't seem to get > the actual image to change, although the functions that call > gtk_too

Changing a GtkToolButton icon_widget on the fly

2011-06-21 Thread James
); eject_red_widget = GTK_WIDGET(gtk_builder_get_object(builder, "eject_tracker_red_image")); eject_button = GTK_TOOL_BUTTON(gtk_builder_get_object(builder, "toolbutton_eject_tracker")); g_object_unref(G_OBJECT(builder)); gtk_widget_show(window);

Re: Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-17 Thread James Tappin
Just to let folks know that the pointers here have given me the lead in that I needed and I've got a working code. (A bit more elegant in the Gtk3 case than Gtk2 but both work). ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.

Re: Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-14 Thread James Tappin
On 14 June 2011 15:00, Stefan Salewski wrote: > On Tue, 2011-06-14 at 14:30 -0600, James Tappin wrote: >> I would like to be able to make a code that draws some (possibly very >> complex) vector graphics, > > A better place for asking may be the cairo mailing list? At l

Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-14 Thread James Tappin
once I crack 1 & 2 then 3 will be fairly obvious. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Maximize on Windows 7 seems broken.

2011-05-12 Thread James Steward
On 13/05/2011 8:03 AM, James Steward wrote: On 11/05/2011 8:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit app for compatibility

Re: Maximize on Windows 7 seems broken.

2011-05-12 Thread James Steward
On 11/05/2011 8:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit app for compatibility. My application calls gtk_window_max

GdkEvent question (is it a bug?)

2011-05-11 Thread James Tappin
While working on a script to convert the GdkEvent structures to Fortran derived types for the GtkFortran project I came across the following struct _GdkEventClient { GdkEventType type; GdkWindow *window; gint8 send_event; GdkAtom message_type; gushort data_format; union { char b[20

Re: Maximize on Windows 7 seems broken.

2011-05-10 Thread James Steward
On 11/05/2011 8:19 AM, Matteo Landi wrote: On Wed, May 11, 2011 at 12:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit ap

Maximize on Windows 7 seems broken.

2011-05-10 Thread James Steward
. Is this a known Windows 7 (possibly also Vista) problem with GTK+ apps? Is there a fix? I've googled around, but not hit on any solutions yet. James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/li

Re: gtk_tree_view_column query.

2011-03-17 Thread James Tappin
On 17 March 2011 15:55, James Tappin wrote: > Hello, >  I'm working on some aspects of gtk-fortran (an interface of GTK+ to > Fortran95/2003), and so need to implement things without using varargs > routines. However I'm getting unexpected behaviours. I don't think the

gtk_tree_view_column query.

2011-03-17 Thread James Tappin
Hello, I'm working on some aspects of gtk-fortran (an interface of GTK+ to Fortran95/2003), and so need to implement things without using varargs routines. However I'm getting unexpected behaviours. I don't think the problem is in the Fortran interface as I can reproduce the errors in C-examples.

Re: How to make the toolbar button flashing

2011-03-01 Thread James Morris
On 1 March 2011 08:20, Miroslav Rajcic wrote: > I am trying to make the "Pause" button flash (or show any similar behaviour > similar to that) when the pause state is active. > So far I tried many things, but none of these seem to work: > - changing the button background color > - changing the but

custom gtkwidget destruction

2011-02-24 Thread James Morris
ruction (of - in this case - the widgets my widget uses)? Regards, James. -- _ : http://jwm-art.net/ -audio/image/text/code/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_remove

2011-02-17 Thread James Morris
On 17 February 2011 12:27, Craig Bakalian wrote: > Hi, > > I am using g_remove to remove some temporary files from the /tmp folder. > It is working as expected.  Yet, gcc is complaining that I am making an > implicit declaration.  What is up with this? You've not #include-ed the necessary files?

Re: adding button events to a gtkdrawingarea based gobject

2011-02-15 Thread James Morris
On 14 February 2011 13:20, James Morris wrote: > Hi, > > (forgive some imprecise names here, am writing from memory and in a > rush before work) > > I'm adapting some code which uses gobject to create a widget. The code > previously used GtkWidget as the parent_class but

adding button events to a gtkdrawingarea based gobject

2011-02-14 Thread James Morris
and besides the widget needs to connect to it's own internal private implementation code anyway so gtk_add_events is obviously wrong. Can anyone provide some pointers please? Thanks, James. ___ gtk-app-devel-list mailing list gtk-app-devel

Re: Memory leaks

2011-02-09 Thread James Morris
On 9 February 2011 16:10, Michael Cronenworth wrote: > James Morris wrote: >> >> How does one gain this mysterious tool for Linux? > > It's called Google. There's a web page[1] that details how to setup valgrind > to debug gtk/glib apps and even a prelimin

Re: Memory leaks

2011-02-09 Thread James Morris
s file is needed for GTK/GLIB. And creating a suppressions file is more work than actually writing the code of the program I'm trying to debug in the first place is. james. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://m

Re: gobject construction with parameter

2011-02-01 Thread James Morris
On 1 February 2011 00:39, James Morris wrote: > On 31 January 2011 13:32, Jannis Pohlmann wrote: > >>> Can anyone point me in the direction of code examples where the >>> construction of the g object requires a parameter so I can see how to >>> do it pl

Re: gobject construction with parameter

2011-01-31 Thread James Morris
erminated list of c strings as a parameter to the constructor. I will most likely avoid GObject all together and do it the old fashioned C way as this only seems to be making it more complex than necessary. Thanks, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gobject construction with parameter

2011-01-31 Thread James Morris
Can anyone point me in the direction of code examples where the construction of the g object requires a parameter so I can see how to do it please? - I can't make sense of the documentation. Cheers, James. -- _ : http://jwm-art.net/ -audio/

Re: newbie question about g_object unref()

2010-11-19 Thread N James Bridge
On Thu, 2010-11-18 at 22:11 +, N James Bridge wrote: > It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees > the allocated memory. Have I got something wrong here? Do I have to do > it explicitly? > Thanks for all your contributions. I have now found G_I

newbie question about g_object unref()

2010-11-18 Thread N James Bridge
It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees the allocated memory. Have I got something wrong here? Do I have to do it explicitly? Thanks, James Bridge ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 12:48 +, James Morris wrote: > On 14 November 2010 12:40, N James Bridge wrote: > > Thanks for input. I assume you did see the same error in drawing - some > > areas inside the drawing come out solid black? > > Yes. > > > I will have to lo

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread James Morris
On 14 November 2010 12:40, N James Bridge wrote: > Thanks for input. I assume you did see the same error in drawing - some > areas inside the drawing come out solid black? Yes. > I will have to look up valgrind. All of this is a big learning exercise! Valgrind sometimes spots initi

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
On Sun, 2010-11-14 at 11:17 +, James Morris wrote: > On 13 November 2010 22:18, N James Bridge wrote: > > I am hoping someone will have the time to look at this. I have been > > developing a gtk/cairo program to draw views of the Mandelbrot set. ... > > I am using gtk2-2

Re: bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread James Morris
On 13 November 2010 22:18, N James Bridge wrote: > I am hoping someone will have the time to look at this. I have been > developing a gtk/cairo program to draw views of the Mandelbrot set. I > wanted to show how the usual iteration progressed for an arbitrary > starting point; i

bug in Cairo or Gtk - peculiar behaviour on resizing or exposing window

2010-11-14 Thread N James Bridge
done something wrong (probably in draw_iter())? If not, is there a bug in gtk or gdk or cairo ? Many thanks for any help James Bridge === /* mbrot.c compile with: cc `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0

Using RTL variants of GTK_STOCK_* icons

2010-11-09 Thread James Morris
Hi, Is it possible to use an RTL variant of a stock icon (in an LTR language, without breaking RTL languages)? ta james ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Shortcut for GtkEntry Icon?

2010-10-26 Thread James Morris
How can I make the icon for GtkEntry activiated by pressing enter/return within the entry itself? I can't switch focus to it using tab. Cheers, james. -- _ : http://jwm-art.net/ -audio/image/text/code ___ gtk-app-devel-list mailing list gt

moving message on a gtk dialog

2010-10-19 Thread James Morris
On 19 October 2010 11:01, Guruprasad Bhat wrote: > Hi all, > I was thinking of a application for showing moving message. In gtk is it > possible to do that? I want a small gtk dialog displaying moving message. > Can any one suggest in this regard. > *Regards,* > *  Guruprasad Bhat.* The simplest

Re: gtk filechooser dialog error

2010-10-01 Thread James Morris
og[1] in the documentation. If you still have problems we'll probably need to see the code. James. [1] http://library.gnome.org/devel/gtk/stable/GtkFileChooserDialog.html > Best regards, > Nagaraja. > >> Hi all, >> >> I am running glade-3.6.7,  my gtk application

scrolled window adjustment 'changed' signal question

2010-09-22 Thread James Morris
OTH adjustments emit the 'changed' signal. Is this supposed to happen like this? (gtk version 2.20) Thanks, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: obtaining current viewport/scrolled window dimensions

2010-09-22 Thread James Morris
On 22 September 2010 23:49, James Morris wrote: > Hi, > > I have a GtkDrawingArea within a GtkViewport within a > GtkScrolledWindow. I need the viewport dimensions so I can center the > contents of the drawing area when the drawn contents are smaller than > the viewport/window

obtaining current viewport/scrolled window dimensions

2010-09-22 Thread James Morris
r scrolled window but no other clues. How do I get these dimensions please? Cheers, James. -- _ : http://jwm-art.net/ -audio/image/text/code ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Windows printing problem

2010-08-22 Thread James
On Fri, 2010-08-20 at 15:55 +1000, James wrote: > Hi, > > I've refined the code a bit. > > This I can print to PDF using pdfFactory Pro, and it is displayed in the > pdfFactory Pro preview window properly, but Windows always errors out on > the actual printing. &

Re: Windows printing problem

2010-08-19 Thread James
ng to print. (The printer works fine for every other app on Windows and Ubuntu). Draw page code below. Regards, James. static void draw_page (GtkPrintOperation *operation, GtkPrintContext *context, gint page_nr, gpo

Windows printing problem

2010-08-19 Thread James
. Printing the plotted data causes printing errors. I'm using gtk+-bundle_2.18.7-20100213_win32 Any clues? Code below. Regards, James. pb = gdk_pixbuf_new_from_file("./Logo.jpg", &gerror); if(!pb) { eprintf("error message

Re: Performance issues of GDK deprecation in favour of Cairo

2010-08-18 Thread James Morris
On 18 August 2010 15:57, Stefan Kost wrote: > hi, > > On 17.08.2010 12:01, James Morris wrote: >> Hi, >> >> I see that some GDK drawing functions and graphics contexts have been >> deprecated in favour of using Cairo. >> >> Yesterday I spent a few

Re: Performance issues of GDK deprecation in favour of Cairo

2010-08-17 Thread James Morris
On 17 August 2010 11:23, Chris Vine wrote: > On Tue, 17 Aug 2010 10:01:43 +0100 > James Morris wrote: > >> I see that some GDK drawing functions and graphics contexts have been >> deprecated in favour of using Cairo. >> >> Yesterday I spent a few hours *remov

Performance issues of GDK deprecation in favour of Cairo

2010-08-17 Thread James Morris
when it says: "Note that due to double-buffering, Cairo contexts created in a GTK+ expose event handler cannot be cached and reused between different expose events." Is it possible to do this any other way? Cheers, James. [1]My machine is a 64bit 3.0ghz dual core desktop. Using GDK f

text on a curved baseline?

2010-07-15 Thread N James Bridge
Hi this is a beginner's question... can you make text follow a curved baseline? Looks like no. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Accessor function for application.width ?

2010-07-13 Thread N James Bridge
On Tue, 2010-07-13 at 08:10 +0200, Florian Müllner wrote: > El mar, 13-07-2010 a las 06:56 +0100, N James Bridge escribió: > > It's useful to blank out a drawing area by drawing a filled rectangle > > with the same size as the window. The examples I have seen get the > &

Accessor function for application.width ?

2010-07-12 Thread N James Bridge
accessor function to use instead? I can't find one. TIA James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: custom widgets - advice on where to start?

2010-07-07 Thread James Morris
get. I've never required anything beyond the standard widgets before now. I'll look at the Cairo documentation. Cheers, James. > The official Cairo documentation (the tutorial is here: > http://cairographics.org/tutorial/) and the Gtk documentation are > probably good places to start.

custom widgets - advice on where to start?

2010-07-07 Thread James Morris
hile I want the display to be colourful and attractive, I also want lightweight resource requirements and speed. Thanks, James. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

  1   2   3   >