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