Re: gnomedesktop.org?

2010-03-22 Thread Ed James
I assume you mean gnomedesktop.org - looks like it got the registration
updated (check whois gnomedesktop.org) by a Luke Stroven yesterday.
I don't know him, but he seems to be the legit owner
(http://stroven.org/about.php).
Perhaps it's just a glitch by the Registrar?  I'd give it a day or two
before people
flood him with email.

Ed James
gnome-fan

On Mon, Mar 22, 2010 at 5:51 AM, Petr Tomasek toma...@etf.cuni.cz wrote:

 High!

 Anyone knows, what happend to the gnomedekstop.org site?

 Thx!

 --
 Petr Tomasek http://www.etf.cuni.cz/~tomasek
 Jabber: but...@jabbim.cz
 SIP: but...@ekiga.net
 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Remarks on gtk docs

2010-02-17 Thread Ed James
Joost, and others,

   I tried learning to use gtk, gdk, cairo, pango, etc several years ago and was
frustrated by the difficulty in getting good docs, sample code, etc.  Even worse
was finding that constant change meant me having to rewrite code fairly
often.  Note that I'm an old guy who has written code for a living since I was
a young guy.  But this has been the most difficult venue in which I've tried
to work.  I feel and share your pain in producing something of quality and
lasting value.  I know it can be done, but I pretty much work alone, and
it's not easy.

   I switched to writing my own set of widgets in C++ which more or less
look and act somewhat like Java's AWT, but nowhere near as powerful yet.
I've got simple projects like a telnet client working, but I feel like
I'm mining
gold with a fork.

   My one big question to this list is (and no disrespect is meant),
is there a elist
similar to this one dedicated to Xlib programming?  This list does have many
very talented people, some of whom I'm in awe of.  But I'm veering
into a different
direction and just need pointer towards that direction.

adTHANKSvance,
Ed James
On Wed, Feb 17, 2010 at 7:06 AM, Joost 1...@depikt.net wrote:
...
 own use. Working on my pygtk alternative depikt i learned that the promise
 of easy interfacing with other languages (than C) is not empty. Then there
 is gdk.Pixbuf and the integration of the well-designed pango and cairo. The
 latter must have been a bit painful for the authors of the
 gimp-tk - many thanks for that ! And thanks for the introduction to
 widget construction.
...But the way thereto is nearly not documented...
...
 During 3 years the documentation of gtk and gtk itself has never ceased to
 cause this kind of pain. It is my fourth GUI-builder - and what is in the 
 tutorial
...
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Not getting which mouse button is pressed on button-press-event

2010-01-13 Thread Ed James
Just tried it and verified most of the answer, via something I'm playing with;
UINT   ejEventManager::getButton  () {
   return currEvent.xbutton.button;
}

1 == Left mouse button
2 == Right mouse button
4 == scroll up
5 == scroll down

Wasn't able to emulate middle button on my 2-button mouse (project for another
day, perhaps).  Can't verify 6,7, but perhaps it's time for me to buy a better
mouse.  I wonder, though, if this might be useful with a joystick (left, right).

Ed James

On Wed, Jan 13, 2010 at 2:13 PM, Tadej Borovšak tadeb...@gmail.com wrote:
 Hello.

 You can get the mouse button pressed by looking at event-button
 field. 1 means left button, 2 middle button (which can usually be
 emulated by pressing right and left button at once on 2-button mouse),
 3 right button. I think 4-7 mean wheel movement (check API docs for
 that, I'm not 100% sure).

 Tadej

 --
 Tadej Borovšak
 tadeboro.blogspot.com
 tadeb...@gmail.com
 tadej.borov...@gmail.com
 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: OT comprehending large application (was What, in detail, the GDK do)

2009-12-29 Thread Ed James
One way might be to write a real application (even if it's just a Hello
World display) and drill down through the source code to see how
this seemingly small amount of code works at lower and lower levels.
While this sounds easy, it's quite a learning experience, and IMHO is
well worth the time spent.

Ed James

On Tue, Dec 29, 2009 at 8:44 AM, Patrick
spell_gooder_...@spellingbeewinnars.org wrote:
...
 a case of sticking to a small section? Could any pros out there explain how
 you tackle this monumental task?
...
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: What, in detail, the GDK do?

2009-12-28 Thread Ed James
A good book on programming for the X Window System  is Xlib Programming
Manual by Adrian Nye (O'Reilly  Associates, Inc).  I've been using it to
try building my own object-oriented toolkit using C++.  My stuff will never
be production quality, but it really helps understand what is happening
at low levels.

Ed James

2009/12/28 David Nečas y...@physics.muni.cz:
...
 I'm afraid to understand what Gdk does cannot be understood without
 understading the basic X window system concepts.  Because essentially
...
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Memory problem

2009-03-04 Thread Ed James
Don't know if this will solve your problem but I found:

gdk_color_alloc is deprecated and should not be used in newly-written
code. Use gdk_colormap_alloc_color() instead.

My guess is that gdk_color_alloc allocates memory which isn't being freed up
and thus accumulates, but I didn't dig very deep.  This might also happen
with the newer function.

Ed James

On Wed, Mar 4, 2009 at 4:23 PM, maeda ma...@claire.co.jp wrote:
 Hi Folks

 I have a function which is eating up lots of memory. The function is
 listed below and is called every 1 second with the same

 GtkWidget *widget

 being passed to it each time.
 What do I need to do to stop it eating up memory. All I want the
 function to do is set the colours of itself and its parent(if it has one).
 Any help greatly appreciated.



 int SetWidgetColour(GtkWidget *widget, int bordersize, int red,
 int green, int blue)
 {
 GtkStyle *new_style;
 GdkColor color;

 color.red = red;
 color.green = green;
 color.blue = blue;

 gdk_color_alloc(gdk_colormap_get_system(), color);
 new_style = gtk_style_copy(gtk_widget_get_default_style());
 new_style-bg[GTK_STATE_NORMAL] = color;
 new_style-bg[GTK_STATE_PRELIGHT] = color;
 new_style-bg[GTK_STATE_ACTIVE] = color;
 gtk_style_detach (widget-style);
 gtk_widget_set_style(GTK_WIDGET(widget), new_style);

 return TRUE;
 }

 --
 Atsushi Maeda

 2-10-22 Mukaibara Asao-ku
 Kawasaki-shi Kanagawa-ken
 215-0007 JAPAN

 Mail1: ma...@claire.co.jp
 Mail2: assio.maeda...@docomo.ne.jp
 Phone: +81-80-5532-0156

 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Memory problem

2009-03-04 Thread Ed James
Guessing here...try adding

   gtk_style_unref(new_style);

before the return TRUE line.

Ed James



On Wed, Mar 4, 2009 at 4:23 PM, maeda ma...@claire.co.jp wrote:
 Hi Folks

 I have a function which is eating up lots of memory. The function is
 listed below and is called every 1 second with the same

 GtkWidget *widget

 being passed to it each time.
 What do I need to do to stop it eating up memory. All I want the
 function to do is set the colours of itself and its parent(if it has one).
 Any help greatly appreciated.



 int SetWidgetColour(GtkWidget *widget, int bordersize, int red,
 int green, int blue)
 {
 GtkStyle *new_style;
 GdkColor color;

 color.red = red;
 color.green = green;
 color.blue = blue;

 gdk_color_alloc(gdk_colormap_get_system(), color);
 new_style = gtk_style_copy(gtk_widget_get_default_style());
 new_style-bg[GTK_STATE_NORMAL] = color;
 new_style-bg[GTK_STATE_PRELIGHT] = color;
 new_style-bg[GTK_STATE_ACTIVE] = color;
 gtk_style_detach (widget-style);
 gtk_widget_set_style(GTK_WIDGET(widget), new_style);

 return TRUE;
 }

 --
 Atsushi Maeda

 2-10-22 Mukaibara Asao-ku
 Kawasaki-shi Kanagawa-ken
 215-0007 JAPAN

 Mail1: ma...@claire.co.jp
 Mail2: assio.maeda...@docomo.ne.jp
 Phone: +81-80-5532-0156

 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_widget_destroy memory leak

2008-09-21 Thread Ed James
Perhaps Question 1.5 in

http://www.gtk.org/api/2.6/gtk/gtk-question-index.html

might help?

Ed J.


2008/9/11 Guoling Gao [EMAIL PROTECTED]

 Hi,
 I see memory usage is biger and biger during the same code running:
 int main(int argc, char* argv[])
 {
 gtk_init(argc, argv);

 GtkWidget* window;

 while (TRUE)
 {
 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 gtk_widget_set_app_paintable(window, TRUE);
 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
 gtk_window_set_keep_above(GTK_WINDOW(window), TRUE);
 gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
 gtk_widget_set_size_request(window, 200, 200);
 gtk_widget_realize(window);

 gtk_widget_destroy(window);
 }

 gtk_main();
 return 0;
 }

 If there are bugs in gtk_widget_destroy? It sames that the memory is not
 freed.
 Wants help.

 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: g_main_loop

2008-07-15 Thread Ed James
Just a guess, but I'd try putting a function in Thread 1 that emits the
signal, but call
that function from Thread 2.  This way, Thread 2 controls when the signal is
emitted,
but the signal is still handled by Thread 1.  Never actually tried this
myself, though,
so I don't know for sure if one thread can call a function in another
thread.

Ed James

2008/7/15 HASWANI HARISH-VCKR47 [EMAIL PROTECTED]:

  Hi All,

 I am a beginner to gtk APIs.
 My query is :
 - In Thread T1 I am calling g_main_loop()
 - In Thread T2 I am emitting a signal through
 g_signal_emit_by_name(G_OBJECT, signal-name);

 I saw that signal handler is running in Thread2 context. I want that it
 should run in Thread 1 context. How I can achieve this?




___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list