Re: C vs C++ for GTK

2007-11-26 Thread JAMES SCOTT
Michael, Thanks for the feedback, it seems we are on the same page on several counts. James, - Original Message From: Michael L Torrie <[EMAIL PROTECTED]> To: gtk-app-devel-list@gnome.org Sent: Monday, November 26, 2007 5:32:22 PM Subject: Re: C vs C++ for GTK JAMES SCOTT wrote: > To

Re: Strange interaction between GtkDialog and a GThread

2007-11-26 Thread wallace . owen
>From the man page for sleep(3): BUGS sleep() may be implemented using SIGALRM; mixing calls to alarm() and sleep() is a bad idea. My guess is that the file dialog has set up something to let it know if some part of it is taking too long, and is using alarm() for that. I

GTK+ 2.12.2 released

2007-11-26 Thread Matthias Clasen
GTK+ 2.12.2 is now available for download at: http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/ gtk+-2.12.2.tar.bz2 md5sum: a789a8a333d418f47cda1dba106d9aac gtk+-2.12.2.tar.gzmd5sum: f9419fc55e6f37f6889c6b0e1cd63e0f This is a bugfix release in the 2.12 series. What is GTK+

Re: C vs C++ for GTK

2007-11-26 Thread Chris Vine
On Mon, 2007-11-26 at 12:04 +0100, Dan H wrote: > On Sun, 25 Nov 2007 00:03:14 +0100 > Tomas Carnecky <[EMAIL PROTECTED]> wrote: > > > > Am I limited with C? > > No, there are very few features in C++ that are hard/impossible to > > imitate in C, but you usually won't need those for small project

Strange interaction between GtkDialog and a GThread

2007-11-26 Thread Gnaural
Maybe I'm just doing something stupid here. But I'd like to know what, at least! Below is an example of a mysterious (well, mysterious to me) problem I've encountered, involving some sort of interaction between a gtk_file_chooser_dialog_new and I thought was a completely separate thread. I'm hopi

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
JAMES SCOTT wrote: > To list members following this subject: I have a question - not a > flame, as I try to understand the diversity of responses to this > topic. > > How many of you who have suggested "Patrick" learn something other > than C, know C already for yourself. Over the course of my >

Fw: C vs C++ for GTK

2007-11-26 Thread JAMES SCOTT
- Forwarded Message From: JAMES SCOTT <[EMAIL PROTECTED]> To: Michael L Torrie <[EMAIL PROTECTED]> Sent: Monday, November 26, 2007 2:37:18 PM Subject: Re: C vs C++ for GTK To list members following this subject: I have a question - not a flame, as I try to understand the diversity of r

Re: C vs C++ for GTK

2007-11-26 Thread Patrick
Hi Micheal Indeed, good advice! I am planning on using Python for everything I can. I just need a little extra speed for data collection and threading during collection. I think I will learn C so that I can re-use code from other open source projects. All of this advice has been great, thanks

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Patrick wrote: > Hi Everyone. > > Sorry for the flame war bait, I know how passionate language debates > get but I need some guidance. I am using PyGTK right now and I am happy > with it, but a day is coming soon were the speed limitations and > less-then-straight-forward threading will be an

Re: C vs C++ for GTK

2007-11-26 Thread Michael L Torrie
Benoît Dejean wrote: >> In fact the GObject library (on which GTK is based) is an example of >> how full object-orientation can be achieved in C. Of course other C++ >> features like templates, operator overloading (ugh!) and namespaces >> are unique. > > This is totally a blocker for beginners

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 12:04 +0100, Dan H a écrit : > On Sun, 25 Nov 2007 00:03:14 +0100 > Tomas Carnecky <[EMAIL PROTECTED]> wrote: > > > > Am I limited with C? > > No, there are very few features in C++ that are hard/impossible to > > imitate in C, but you usually won't need those for smal

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 08:39 +, Neil Bird a écrit : > Around about 25/11/07 12:31, Benoît Dejean typed ... > > I've switched gnome-system-monitor to C++ and i'm very happy with it. > >Just out of interest, did you choose GTKmm or C++ with vanilla GTK+? As i didn't start from scratch

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le dimanche 25 novembre 2007 à 10:47 +0100, Tomas Carnecky a écrit : > Allin Cottrell wrote: > > One reason for going with C is that the great bulk of free > > software is in C, including GLib and GTK. The main exception > > is Qt, the basis for KDE. So if you might want to get into KDE > > p

Re: C vs C++ for GTK

2007-11-26 Thread Benoît Dejean
Le lundi 26 novembre 2007 à 15:56 +0100, Fernando Apesteguía a écrit : > On 11/25/07, Benoît Dejean <[EMAIL PROTECTED]> wrote: > > > > I've switched gnome-system-monitor to C++ and i'm very happy with it. It's still 95% Gtk + 5% Gtkmm > Two questions about the sentence above: > > - What improve

Re: C vs C++ for GTK

2007-11-26 Thread Fernando Apesteguía
On 11/25/07, Benoît Dejean <[EMAIL PROTECTED]> wrote: > > Le dimanche 25 novembre 2007 à 00:03 +0100, Tomas Carnecky a écrit : > > Patrick wrote: > > > is C++ to complicated? > > C++ is more complex than C, and thus harder to fully understand. > > > > > Is C going out of date? > > No, it's still be

Re: C vs C++ for GTK

2007-11-26 Thread Gian Mario Tagliaretti
2007/11/24, Patrick <[EMAIL PROTECTED]>: Hi Patrick, > I can only spend 8-12 hours a week programming, I am not a professional > programmer, is C++ to complicated? Is C going out of date? Am I limited > with C? Before to switch to a new language are you sure that python is so slow that you can't

Re: Insert gap in text buffer by using a tag

2007-11-26 Thread Olivier Delhomme
2007/11/22, Miroslav Rajcic <[EMAIL PROTECTED]>: > > I am having a text like "0bullet" inside of GtkTextView, where the first > character is a bullet sign and the rest is the ordinary text > I need to be able to format this text to insert some space gap between the > bullet and the rest (should loo

Re: C vs C++ for GTK

2007-11-26 Thread Dan H
On Sun, 25 Nov 2007 00:03:14 +0100 Tomas Carnecky <[EMAIL PROTECTED]> wrote: > > Am I limited with C? > No, there are very few features in C++ that are hard/impossible to > imitate in C, but you usually won't need those for small projects. In fact the GObject library (on which GTK is based) is an

Re: C vs C++ for GTK

2007-11-26 Thread Neil Bird
Around about 25/11/07 12:31, Benoît Dejean typed ... > I've switched gnome-system-monitor to C++ and i'm very happy with it. Just out of interest, did you choose GTKmm or C++ with vanilla GTK+? I'm looking at doing some GTK from C++ (I've previously only really used GTK+ from C), and on th