SOLVED: Re: Need to restore a window to last size/position on restart

2007-01-16 Thread Russell Markus
Thanks for the help.  I was trying to get the window size and position after
the user clicked the X in the upper right corner, but I guess the window was
already destroyed before my handler was called.  I installed a handler for a
resize request and configuration events and store the size and position
there.

Thanks again.

Russell Markus
Sr. Software Engineer
IPMobileNet, Inc.
(949)417-4590 

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


Re: GLib 2.12.8 released

2007-01-16 Thread Matthias Clasen
On 1/16/07, Marcin Banasiak [EMAIL PROTECTED] wrote:
 Thanks for the work, but I don't understand, why you modified ABI
 without changing soname. Now some application crashes, for example
 liferea:

 /usr/bin/liferea-bin: Symbol `g_thread_functions_for_glib_use' has
 different size in shared object, consider re-linking
 Segmentation fault

 I found many apps / libs which need rebuild, so please in future
 change soname or write some note about necessity of relinking. I
 wouldn't like to find surprises like this in the future.


I'm just as surprised as you are by this. I didn't expect this change
to break a large number of applications. I'll figure out a better fix
for 2.12.9. It you want to help, you can test the patch in bug 397139.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GLib 2.12.8 released

2007-01-16 Thread Marcin Banasiak
2007/1/16, Matthias Clasen [EMAIL PROTECTED]:
 I'm just as surprised as you are by this. I didn't expect this change
 to break a large number of applications. I'll figure out a better fix
 for 2.12.9. It you want to help, you can test the patch in bug 397139.

I've already tested this patch and liferea, evolution,
nautilus-cd-burner and evince seem to work for me. Thanks.

-- 
Marcin Banasiak
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GLib 2.12.9 released

2007-01-16 Thread Matthias Clasen
GLib 2.12.9 is now available for download at:

 ftp://ftp.gtk.org/pub/glib/2.12/
 http://download.gnome.org/sources/glib/2.12/

glib-2.12.9.tar.bz2   md5sum: b3f6a2a318610af6398b3445f1a2d6c6
glib-2.12.9.tar.gzmd5sum: 676cfe29fdfd80c68715e6cc31ba1fad

This is a quick followup release to fix an unintended ABI
breakage in the 2.12.8 release. For details see bug #397139.

Thanks to Joe Marcus Clarke and Tor Lillqvist for pointing
out the problem and testing the fix.


Matthias Clasen
January 16, 2007


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


Re: How does one set background color for entire line in textview? - not possible

2007-01-16 Thread Tony Freeman
I've searched all over and I figure that this type of functionality is
not possible at the current time.

I'll just have to do without :-)

-- Tony


On Mon, 2007-01-15 at 15:06 -0500, Tony Freeman wrote:
 Hello,
 
 I have a function that takes the output of a spawned process and
 displays that in a text buffer (part of a notebook widget).  When the
 spawned process is finished, I'd like to put some colorized text at the
 bottom of the text buffer/view that alerts the user that the process is
 done.
 
 What I want is the entire line to have a background color of blue.  The
 code that I have so far just displays the blue background under the
 text.
 
 How do I make the entire line blue?
 
 
 switch (status) {
   case G_IO_STATUS_NORMAL:
   return TRUE;
   default:
   /* Use a tag to make the DONE notification noticeable */
   tag = gtk_text_buffer_create_tag (
   buffer, done_notification, 
   foreground, white, 
   background, blue, 
   justification, GTK_JUSTIFY_CENTER,
   background-full-height, TRUE,
   NULL);
   start_byte = gtk_text_buffer_get_char_count(buffer);
   gtk_text_buffer_insert(buffer, iter, 
   \n--\nDONE\n--\n, -1);
   end_byte = gtk_text_buffer_get_char_count(buffer);
   gtk_text_buffer_get_iter_at_offset (buffer, 
   start, start_byte);
   gtk_text_buffer_get_iter_at_offset (buffer, 
   end, end_byte);
   gtk_text_buffer_apply_tag (buffer, tag, start, end);
   end_mark = gtk_text_buffer_create_mark(
   buffer, end_mark, end, FALSE);
   gtk_text_view_scroll_to_mark(textview, end_mark, 
   0.0, FALSE, 0.0, 0.0);
   return FALSE;
 }
 
 -- Tony
 
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Overlap scale on scrollbar but not correctly exposed?

2007-01-16 Thread MD Tsai
Hi,

I'm writing a custom widget inherit from scrollbar (V/H), with a scale
overlap on scrollbar.

The custom widget overrides realize, which calls parent class' realize of
scrollbar.
In scale part, scale-window is parent window and scale-event_window assign
with correct size.

When expose, both scrollbar and scale calls parent class' expose but only
scrollbar draw correct. The rectangle of scale is gray and no slider. Mouse
click does not work.

Is there any one has experience about custom widget without container widget
and from scratch? Please kindly give me some hints about this.

Thanks a lot.

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


Re: SOLVED: Re: Need to restore a window to last size/position on restart

2007-01-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Jan 16, 2007 at 10:31:16AM -0800, Russell Markus wrote:
 Thanks for the help.  I was trying to get the window size and position after
 the user clicked the X in the upper right corner, but I guess the window was
 already destroyed before my handler was called.  I installed a handler for a
 resize request and configuration events and store the size and position
 there.

I might be barking up the wrong tree, but if you hook into the delete
evet, the widget is still alive (so much alive that you even could
thwart the destruction by returning TRUE in the handler).

Of course, if the widget is unrelaized (not shown on screen) it still
might have bogus dimensions.

Note that this size business is a quite complex one: the geometry of
a widget results from negotiations among its children and ancestors
and depends on many issues which only are known when things hit the X
server (font sizes, for example). And an X app might show on several
X servers (or window managers, or...), thus resulting in different
geometries for one and the same widget (even maybe on the same run of
the app!). The price of flexibility.

OTOH, the few times I look at a Windows app, I pity those who can't
resize the simplest of dialogs :-)

Regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFrdP7Bcgs9XrR2kYRArYeAJ9Nxl5qt3JKN3xEVIe4x9SzcfhutgCfYGjP
kQ7IHOdD9N5YcnwG139KD+M=
=8uMU
-END PGP SIGNATURE-

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

GTK+ 2.10.8 released

2007-01-16 Thread Matthias Clasen
GTK+ 2.10.8 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/v2.10/
 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.10/

gtk+-2.10.8.tar.bz2   md5sum: 46bfef60f02c39acdcdba2ac46825db4
gtk+-2.20.8.tar.gzmd5sum: ef34d9f34ad15f5038ebb6fd129061c4

This is a bugfix release in the 2.10.x series.


What is GTK+


GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off tools to complete application
suites.

GTK+ has been designed from the ground up to support a range of
languages, not only C/C++. Using GTK+ from languages such as Perl and
Python (especially in combination with the Glade GUI builder) provides
an effective method of rapid application development.

GTK+ is free software and part of the GNU Project. However, the
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
developers, including those developing proprietary software, without
any license fees or royalties. 


Where to get more information about GTK+


Information about GTK+ including links to documentation can be
found at:
 
http://www.gtk.org/

An installation guide for GTK+ 2.8 is found at:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

Common questions:
 
http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
http://www.gtk.org/faq/


Overview of Changes from GTK+ 2.10.7 to 2.10.8
==

* Bugs fixed:
 393102 _gtk_modules_init assumes display is not opened instead o...
 395326 Gedit crashed no open text documents
 394855 impossible to build the directfb version
 396161 GtkUIManager crashing on unknown action in ui-file
 334168 Single '~' in location entry doesn't go to $HOME
 363147 GTKFileChoser Does not Show Desktop and Home after Uncol...
 390746 Custom tab title not set correctly on Microsoft Windows
 393813 Segfault in gtk_text_view_set_border_window_size()
 395316 File leak in gtk-demo
 395830 Wrong named icon lookup when requested size matches two s...
 396074 libgtk should link against Xfixes
 396160 Memory leak in gtkselection
 396175 wrong GtkWarning: Input method gtk-im-context-simple shou...
 396470 Missing slider redraw in GtkRange if activate-slider is set
 153828 Filechooser does not remember state
 357303 Gnome Main Menu Recent Documents extended by long file na...
 394000 Documentation error for GdkPixdata
 392504 The crosshair mouse cursor look a bit funny
 393255 GtkNotebook: Menu label centered instead of left aligned
 395045 gtk_radio_button_focus: Harmless compiler warning

* Updated translations (bg,lt,sl)


A list of all fixed bugs can be found at 
http://bugzilla.gnome.org/buglist.cgi?bug_id=363147,392504,393255,393813,393102,153828,394855,334168,395316,395326,390746,395045,396074,396160,396161,395830,357303,396470,396175,394000


Thanks to all contributors:
Benjamin Berg
Brian Cameron
Carlos Garcia Campos
Carlos Garnacho
Chris Wilson
Emmanuele Bassi
Hans Breuer
Josselin Mouette
Kjartan Maraas
Kristian Rietveld
Lemmit Kaplinski
Luca Ferretti
Michael Natterer
Michail Crayson
Miguel Cabrera
Paolo Borelli
Pascal Terjan
Peter Teichman
Richard Hult
Samuel Cormier-Iijima
Tommi Komulainen
Tor Lillqvist
Yevgen Muntyan


Matthias Clasen
January 17, 2007


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


change of ABI in Gtk+ 2.10 on Win32

2007-01-16 Thread Arnaud Charlet
I see lots of changes like that in Gtk+ 2.10.7:

#ifdef G_OS_WIN32
/* Reserve old names for DLL ABI backward compatibility */
#define gtk_accel_map_load gtk_accel_map_load_utf8
#define gtk_accel_map_save gtk_accel_map_save_utf8
#endif

Which causes a huge number of undefined symbols when binding Gtk+ in another
language (in my case, GtkAda).

What's the proper approach here ? Where are the old symbols (without _utf8)
defined ?

I cannot change all these names, because that would mean having to maintain two
very different list of symbols and files for unix and win32, so I find
this change very intrusive and very incompatible.

Can we do something to improve the situation ?
Thanks in advance,

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


GLib 2.12.9 released

2007-01-16 Thread Matthias Clasen
GLib 2.12.9 is now available for download at:

 ftp://ftp.gtk.org/pub/glib/2.12/
 http://download.gnome.org/sources/glib/2.12/

glib-2.12.9.tar.bz2   md5sum: b3f6a2a318610af6398b3445f1a2d6c6
glib-2.12.9.tar.gzmd5sum: 676cfe29fdfd80c68715e6cc31ba1fad

This is a quick followup release to fix an unintended ABI
breakage in the 2.12.8 release. For details see bug #397139.

Thanks to Joe Marcus Clarke and Tor Lillqvist for pointing
out the problem and testing the fix.


Matthias Clasen
January 16, 2007


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


GTK+ 2.10.8 released

2007-01-16 Thread Matthias Clasen
GTK+ 2.10.8 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/v2.10/
 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.10/

gtk+-2.10.8.tar.bz2   md5sum: 46bfef60f02c39acdcdba2ac46825db4
gtk+-2.20.8.tar.gzmd5sum: ef34d9f34ad15f5038ebb6fd129061c4

This is a bugfix release in the 2.10.x series.


What is GTK+


GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off tools to complete application
suites.

GTK+ has been designed from the ground up to support a range of
languages, not only C/C++. Using GTK+ from languages such as Perl and
Python (especially in combination with the Glade GUI builder) provides
an effective method of rapid application development.

GTK+ is free software and part of the GNU Project. However, the
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
developers, including those developing proprietary software, without
any license fees or royalties. 


Where to get more information about GTK+


Information about GTK+ including links to documentation can be
found at:
 
http://www.gtk.org/

An installation guide for GTK+ 2.8 is found at:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

Common questions:
 
http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
http://www.gtk.org/faq/


Overview of Changes from GTK+ 2.10.7 to 2.10.8
==

* Bugs fixed:
 393102 _gtk_modules_init assumes display is not opened instead o...
 395326 Gedit crashed no open text documents
 394855 impossible to build the directfb version
 396161 GtkUIManager crashing on unknown action in ui-file
 334168 Single '~' in location entry doesn't go to $HOME
 363147 GTKFileChoser Does not Show Desktop and Home after Uncol...
 390746 Custom tab title not set correctly on Microsoft Windows
 393813 Segfault in gtk_text_view_set_border_window_size()
 395316 File leak in gtk-demo
 395830 Wrong named icon lookup when requested size matches two s...
 396074 libgtk should link against Xfixes
 396160 Memory leak in gtkselection
 396175 wrong GtkWarning: Input method gtk-im-context-simple shou...
 396470 Missing slider redraw in GtkRange if activate-slider is set
 153828 Filechooser does not remember state
 357303 Gnome Main Menu Recent Documents extended by long file na...
 394000 Documentation error for GdkPixdata
 392504 The crosshair mouse cursor look a bit funny
 393255 GtkNotebook: Menu label centered instead of left aligned
 395045 gtk_radio_button_focus: Harmless compiler warning

* Updated translations (bg,lt,sl)


A list of all fixed bugs can be found at 
http://bugzilla.gnome.org/buglist.cgi?bug_id=363147,392504,393255,393813,393102,153828,394855,334168,395316,395326,390746,395045,396074,396160,396161,395830,357303,396470,396175,394000


Thanks to all contributors:
Benjamin Berg
Brian Cameron
Carlos Garcia Campos
Carlos Garnacho
Chris Wilson
Emmanuele Bassi
Hans Breuer
Josselin Mouette
Kjartan Maraas
Kristian Rietveld
Lemmit Kaplinski
Luca Ferretti
Michael Natterer
Michail Crayson
Miguel Cabrera
Paolo Borelli
Pascal Terjan
Peter Teichman
Richard Hult
Samuel Cormier-Iijima
Tommi Komulainen
Tor Lillqvist
Yevgen Muntyan


Matthias Clasen
January 17, 2007


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


Re: GLib 2.12.8 released

2007-01-16 Thread Marcin Banasiak
Thanks for the work, but I don't understand, why you modified ABI
without changing soname. Now some application crashes, for example
liferea:

/usr/bin/liferea-bin: Symbol `g_thread_functions_for_glib_use' has
different size in shared object, consider re-linking
Segmentation fault

I found many apps / libs which need rebuild, so please in future
change soname or write some note about necessity of relinking. I
wouldn't like to find surprises like this in the future.

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


Non-Technical GTK Post / Job Posting

2007-01-16 Thread Peterson Hash, Cyndi
Dear GTK Developers - 

This is a non-technical post in nature, and I am writing to you all in
hopes of letting you know that my company has a need for a senior
developer who is a specialist GUI developer using GTK and/or QT tools.

Inter-Tel's RD division is located in the Phoenix metro area and we are
using these tools for development of our software solutions.  I have
included a job description below.  Please feel free to contact me about
this position or any in our company.

We offer relocation assistance and will transfer H1 visas.  Our
developers work in a small-team environment that is like a start-up
environment in terms of using creativity to solve problems, but with the
stability of a company foundation that is over 30 years old.

Inter-Tel is currently seeking a Software Embedded GUI Developer who
will develop a GUI framework for mobile devices, to conceive and design
architectural solutions based on a GTK platform for a variety of
technologies such as Voip, web services, network management etc.

*Perform highly complex product design activities that includes
developing, testing and modifying operating systems, compilers,
utilities and other systems/network software
*Develop and direct software systems testing and validation procedures
*Produces systems program and user documentation for all
systems/networks created within the department
*Provides work leadership and assistance to less senior programmers
*Analyzes information to determine, recommend and plan installation of a
highly complex new system or modifications of existing systems
*Manage or coordinate small to medium software development projects on a
project-by-project basis
*Research new technology or development tools
*Trains less experienced staff and acts as a resource for escalated
questions and issues

Requires:
* Proven GUI development using GTK or QT graphics libraries.
* Familiarity with development within the x-window system.
* Experience in UI design and engineering of content-based applications
such as calendar, photo albums, email, web browser.
* Familiarity with embedded systems (especially linux) and low-level
performance optimization.
* Shell scripting, tool development and cross build system maintenance
and development.
* Participating in internal RD work.
* Interfacing with Open Source communities.
* Working well as part of a team.
* Bachelor degree in Computer Science or related discipline (or proven
work experience ).


Cyndi Peterson Hash
Engineering Recruitment Manager
Inter-Tel Integrated Systems, Inc. - Chandler, AZ
480-961-9000 x21279
[EMAIL PROTECTED]

Inter-Tel is hiring Engineers! 
 
The information contained in this E-mail may be confidential and/or proprietary 
to Inter-Tel and/or its affiliates. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Vertical-flowing GtkIconView ?

2007-01-16 Thread Murray Cumming
Does anyone know of any easy way to make the icons in a GtkIconView flow
vertically in columns instead of horizontally in rows?
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

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


Re: Vertical-flowing GtkIconView ?

2007-01-16 Thread Claudio Saavedra
Hi Murray,

Quoting Murray Cumming [EMAIL PROTECTED]:
 Does anyone know of any easy way to make the icons in a GtkIconView flow
 vertically in columns instead of horizontally in rows?

There was a bug about that, so I think it's not possible.

http://bugzilla.gnome.org/show_bug.cgi?id=331594

But, if it helps, you can set the columns property to 1, but then you'll be
restricted to one column, of course.

Regards,

Claudio
--
Claudio Saavedra [EMAIL PROTECTED]

-
Este correo fue enviado por http://alumnos.utalca.cl
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GLib 2.12.8 released

2007-01-16 Thread Matthias Clasen
On 1/16/07, Marcin Banasiak [EMAIL PROTECTED] wrote:
 Thanks for the work, but I don't understand, why you modified ABI
 without changing soname. Now some application crashes, for example
 liferea:

 /usr/bin/liferea-bin: Symbol `g_thread_functions_for_glib_use' has
 different size in shared object, consider re-linking
 Segmentation fault

 I found many apps / libs which need rebuild, so please in future
 change soname or write some note about necessity of relinking. I
 wouldn't like to find surprises like this in the future.


I'm just as surprised as you are by this. I didn't expect this change
to break a large number of applications. I'll figure out a better fix
for 2.12.9. It you want to help, you can test the patch in bug 397139.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GLib 2.12.8 released

2007-01-16 Thread Marcin Banasiak
2007/1/16, Matthias Clasen [EMAIL PROTECTED]:
 I'm just as surprised as you are by this. I didn't expect this change
 to break a large number of applications. I'll figure out a better fix
 for 2.12.9. It you want to help, you can test the patch in bug 397139.

I've already tested this patch and liferea, evolution,
nautilus-cd-burner and evince seem to work for me. Thanks.

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


Re: Delay in Displaying Dialog

2007-01-16 Thread Marshall Lake

 After the text being sent to the text widget ends and process flow 
 falls back into gtk_main() then all the other widgets within the 
 secondary dialog appear including the first few lines of text which had 
 been missing.

 This line leads me to believe that you may not be relinquishing control to
 the Gtk mainloop.  When the text comes into the second dialog box, are you
 locking up the program until it is all read?

Yes, I'm locking up the program until all the text is read.

I haven't taken the time to test your belief but assuming you're correct 
(and I'm sure you are) that brings to mind a couple of questions ...

Can there be more than one gtk_main() call in one program?  And could that 
possibly help me?

How does MODAL and gtk_dialog_run() work?  Do they both integrate 
themselves with the GTK main loop behind the scenes?

-- 
Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Using Pango with a GdkPixbuf

2007-01-16 Thread Ian King
Hi,

Is it possible to draw text on to a GdkPixbuf directly using Pango?

Thanks for your time.

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


Re: Delay in Displaying Dialog

2007-01-16 Thread Robert Pearce
On Tue, 16 Jan 2007, Marshall Lake [EMAIL PROTECTED] wrote :

Can there be more than one gtk_main() call in one program?  And could that
possibly help me?

No, that's not allowed. There is a function that iterates the main loop 
once (gtk_main_iterate??) but the use of that is generally a sign of bad 
program design. However, it might get you out of a pickle if there's no 
obvious alternative.

How does MODAL and gtk_dialog_run() work?  Do they both integrate
themselves with the GTK main loop behind the scenes?

Yes, they do some arcane magic in conjunction with the main loop.
-- 
Rob Pearce   http://www.bdt-home.demon.co.uk

The contents of this | Windows NT crashed.
message are purely   | I am the Blue Screen of Death.
my opinion. Don't| No one hears your screams.
believe a word.  |
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Delay in Displaying Dialog

2007-01-16 Thread Robert Pearce
On Tue, 16 Jan 2007, Matt Fischer [EMAIL PROTECTED] wrote :
I believe it's also possible to tell the mainloop about a file
descriptor which should be watched, and have it call a function
whenever new data appears.  I have never used this tactic (hopefully
someone else can clarify this)

Yes - the GTK IO Channel structure allows this. I have used this
approach to asynchronously monitor incoming data on a serial port, and
it seems to work fairly well. It certainly gave me FAR fewer headaches
than trying to do a similar thing on Windows!

chan = g_io_channel_unix_new ( fd );

g_io_channel_set_encoding ( chan, NULL, tErrPtr );

EventSrc = g_io_add_watch ( chan, G_IO_IN, ParseRxData, user_data );

Where ParseRxData is the data handler function:

gboolean ParseRxData ( GIOChannel *source,
   GIOCondition condition,
   gpointer data )

The only oddity I'm left with is that once I've run that GTK
application, the serial port in question just blocks on open for all
other applications, though I can re-run the GTK app without problem.
-- 
Rob Pearce   http://www.bdt-home.demon.co.uk

The contents of this | Windows NT crashed.
message are purely   | I am the Blue Screen of Death.
my opinion. Don't| No one hears your screams.
believe a word.  |
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


extra X libs dependencies in a simple glib mainloop

2007-01-16 Thread zentara
Hi,
I was trying out a simple glib mainloop, and the following
program runs fine in X or without X. However, doing
an ldd on the executable, it lists 20 or more X-related
libraires.

Can you compile a glib program so it dosn't require the X libs?

Also, why dosn't this compile it? Using just glib in pkgconfig?
gcc  -o test  test.c  `pkg-config --cflags --libs glib-2.0`

but this does
gcc  -o test  test.c  `pkg-config --cflags --libs gtk+-2.0`

The simple loop:

--  snip 

#include glib/gmain.h
#include stdio.h

GMainLoop* loop;
int i;

gboolean  callback () {
 printf(%d\n,i  );
 i++;

 if( i  10 ){
 g_main_loop_quit(loop);
return FALSE;
  }
  
  return TRUE;
 }
 

int main() {
 loop = g_main_loop_new( NULL, TRUE) ;  

 g_timeout_add(500, callback, NULL);

 g_main_loop_run(loop);
 return 0;
 }
-  snip 


Thanks,
zentara


-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: extra X libs dependencies in a simple glib mainloop

2007-01-16 Thread Yeti
On Tue, Jan 16, 2007 at 03:50:50PM -0500, zentara wrote:
 
 Can you compile a glib program so it dosn't require the X libs?

Of course...

 Also, why dosn't this compile it? Using just glib in pkgconfig?
 gcc  -o test  test.c  `pkg-config --cflags --libs glib-2.0`

...precisely this way, it compiles your program and it
works then.

Since no one knows what errors you got, no one can tell you
what went wrong.

But most often there is a typo in `pkg-config --cflags --libs glib-2.0`
that makes pkg-config silently fail.

Yeti


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


Re: Delay in Displaying Dialog

2007-01-16 Thread Matt Fischer

On 1/16/07, Robert Pearce [EMAIL PROTECTED] wrote:


On Tue, 16 Jan 2007, Matt Fischer [EMAIL PROTECTED] wrote :
I believe it's also possible to tell the mainloop about a file
descriptor which should be watched, and have it call a function
whenever new data appears. I have never used this tactic (hopefully
someone else can clarify this)

Yes - the GTK IO Channel structure allows this. I have used this
approach to asynchronously monitor incoming data on a serial port, and
it seems to work fairly well. It certainly gave me FAR fewer headaches
than trying to do a similar thing on Windows!

chan = g_io_channel_unix_new ( fd );

g_io_channel_set_encoding ( chan, NULL, tErrPtr );

EventSrc = g_io_add_watch ( chan, G_IO_IN, ParseRxData, user_data );

Where ParseRxData is the data handler function:

gboolean ParseRxData ( GIOChannel *source,
   GIOCondition condition,
   gpointer data )

The only oddity I'm left with is that once I've run that GTK
application, the serial port in question just blocks on open for all
other applications, though I can re-run the GTK app without problem.
--
Rob Pearce   http://www.bdt-home.demon.co.uk

The contents of this | Windows NT crashed.
message are purely   | I am the Blue Screen of Death.
my opinion. Don't| No one hears your screams.
believe a word.  |
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list



Marshall--perhaps it would help if you could provide a little more info on
the nature of the data coming into the dialog.  Does it come over a socket,
or a file descriptor from some type of character device, or what?  It's
likely that the I/O channel approach Robert describes can be coaxed into
working for your situation.  It's certainly better than polling for new data
using an idle handler as I described above (although worst-case scenario,
that would probably be a fairly reliable fallback.)

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


Valid signal names

2007-01-16 Thread Alexandre Moreira
Ok, this is probably some dumb newbie question, but I couldn't find
this on the internet (and I did search it).

What can make a valid signal name ? I've seen the alphanumeric
characters and the hyphen in the docs but, could I possibly create a
signal name with dots, like in org.domain.appname.signal if I want
to prefix it ?

Again, is there a maximum length for signal names ?

Regards,
Alexandre Moreira.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GLib 2.12.9 released

2007-01-16 Thread Matthias Clasen
GLib 2.12.9 is now available for download at:

 ftp://ftp.gtk.org/pub/glib/2.12/
 http://download.gnome.org/sources/glib/2.12/

glib-2.12.9.tar.bz2   md5sum: b3f6a2a318610af6398b3445f1a2d6c6
glib-2.12.9.tar.gzmd5sum: 676cfe29fdfd80c68715e6cc31ba1fad

This is a quick followup release to fix an unintended ABI
breakage in the 2.12.8 release. For details see bug #397139.

Thanks to Joe Marcus Clarke and Tor Lillqvist for pointing
out the problem and testing the fix.


Matthias Clasen
January 16, 2007


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


Re: Delay in Displaying Dialog

2007-01-16 Thread Marshall Lake

 Marshall--perhaps it would help if you could provide a little more info 
 on the nature of the data coming into the dialog.  Does it come over a 
 socket, or a file descriptor from some type of character device, or 
 what?

I'm receiving the text via a socket.

With your help and prodding I've been able to get past my problem using 
g_idle_add().  Using it does open up new challenges for me but I'm 
thankful for the helping hand.

-- 
Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK+ 2.10.8 released

2007-01-16 Thread Matthias Clasen
GTK+ 2.10.8 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/v2.10/
 http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.10/

gtk+-2.10.8.tar.bz2   md5sum: 46bfef60f02c39acdcdba2ac46825db4
gtk+-2.20.8.tar.gzmd5sum: ef34d9f34ad15f5038ebb6fd129061c4

This is a bugfix release in the 2.10.x series.


What is GTK+


GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off tools to complete application
suites.

GTK+ has been designed from the ground up to support a range of
languages, not only C/C++. Using GTK+ from languages such as Perl and
Python (especially in combination with the Glade GUI builder) provides
an effective method of rapid application development.

GTK+ is free software and part of the GNU Project. However, the
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
developers, including those developing proprietary software, without
any license fees or royalties. 


Where to get more information about GTK+


Information about GTK+ including links to documentation can be
found at:
 
http://www.gtk.org/

An installation guide for GTK+ 2.8 is found at:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

Common questions:
 
http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
http://www.gtk.org/faq/


Overview of Changes from GTK+ 2.10.7 to 2.10.8
==

* Bugs fixed:
 393102 _gtk_modules_init assumes display is not opened instead o...
 395326 Gedit crashed no open text documents
 394855 impossible to build the directfb version
 396161 GtkUIManager crashing on unknown action in ui-file
 334168 Single '~' in location entry doesn't go to $HOME
 363147 GTKFileChoser Does not Show Desktop and Home after Uncol...
 390746 Custom tab title not set correctly on Microsoft Windows
 393813 Segfault in gtk_text_view_set_border_window_size()
 395316 File leak in gtk-demo
 395830 Wrong named icon lookup when requested size matches two s...
 396074 libgtk should link against Xfixes
 396160 Memory leak in gtkselection
 396175 wrong GtkWarning: Input method gtk-im-context-simple shou...
 396470 Missing slider redraw in GtkRange if activate-slider is set
 153828 Filechooser does not remember state
 357303 Gnome Main Menu Recent Documents extended by long file na...
 394000 Documentation error for GdkPixdata
 392504 The crosshair mouse cursor look a bit funny
 393255 GtkNotebook: Menu label centered instead of left aligned
 395045 gtk_radio_button_focus: Harmless compiler warning

* Updated translations (bg,lt,sl)


A list of all fixed bugs can be found at 
http://bugzilla.gnome.org/buglist.cgi?bug_id=363147,392504,393255,393813,393102,153828,394855,334168,395316,395326,390746,395045,396074,396160,396161,395830,357303,396470,396175,394000


Thanks to all contributors:
Benjamin Berg
Brian Cameron
Carlos Garcia Campos
Carlos Garnacho
Chris Wilson
Emmanuele Bassi
Hans Breuer
Josselin Mouette
Kjartan Maraas
Kristian Rietveld
Lemmit Kaplinski
Luca Ferretti
Michael Natterer
Michail Crayson
Miguel Cabrera
Paolo Borelli
Pascal Terjan
Peter Teichman
Richard Hult
Samuel Cormier-Iijima
Tommi Komulainen
Tor Lillqvist
Yevgen Muntyan


Matthias Clasen
January 17, 2007


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


Re: ProgressBar doesn't pulse

2007-01-16 Thread Ben Staude
Am Dienstag 16 Januar 2007 18:35 schrieb zentara:
 On Mon, 15 Jan 2007 18:21:30 +0100

 Ben Staude [EMAIL PROTECTED] wrote:
 Am Sonntag 14 Januar 2007 04:21 schrieb muppet:
  On Jan 13, 2007, at 5:54 PM, Ben Staude wrote:
   Any ideas why it doesn't work? Is this related to some Gtk/KDE
   interaction?
 
  This typically happens when you don't return control the main loop.
  Does your program respond at all while it's supposed to be pulsing?
 
 I am using this as test code (was posted by zentara here:
 http://www.mail-archive.com/gtk-perl-list@gnome.org/msg00854.html):
 
[ snip code ]

 This test script does work as expected on another Linux machine (running
 Debian Sarge with KDE), but the progressbar looks different (more like
  gnome, whereas on Kubuntu (where it doesn't work), they have some KDE
  integration of gtk and therefor a KDE progressbar).
 
  You might also try setting the pulse step.  The default is 0.1, but
  you may need a different value for some reason or another.  Difficult
  to tell without more information.
 
 Maybe the code above helps sorting out programming issues (as the test
  script isn't mine:-)). Besides this, I don't know in which direction to
  search for the cause or provide information? Maybe someone on the list
  can run the test script on their Kubuntu to find out whether it's related
  to that?
 
 Thanks a lot,
 Ben

 I just ran the example, on my linux box, and it pulses very fast. If I set
 the timer interval to 1 (very fast), it seems to sputter. So my thought is
 that with all the KDE bloat in kbuntu, running the timer at 10, is too fast
 for the system to update the screen, so it appears not to work.

I agree that there might be some KDE bloat, but it's not *that* bad;-) 

 Try setting the timer to 100,  500, or even 1000 and see if kbuntu can
 keep up.

I set the timer to different values (from 5 to 5000), it still doesn't work. 
The CPU is idle, the system is completely reactive. This is including the 
test dialog, where the Quit-button has the same hover-effect as the other 
kde buttons. Only the progressbar does not seem to do anything at all...

 zentara

Ben


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list