Re: word wrap in liststore column

2010-06-27 Thread Mick
On Sun, 27 Jun 2010 05:19:51 +0200
Florian Müllner florian.muell...@gmail.com wrote:

 Hi,
 
 El dom, 27-06-2010 a las 12:25 +1000, Mick escribió:
  I know that, I have searched but not found anything that says this
  is how you set the properties of ...
 
 ... an GObject:
 http://library.gnome.org/devel/gobject/stable/gobject-The-Base-Object-Type.html#g-object-set
 
 
  what I'm trying to do is set wrap-width to 60 characters and
  wrap-mode to word somewhat like this:
  
  GtkSomeObscureFunction(list-action, wrap-width = 60, 
  wrap-mode = PANGO_WRAP_WORD);
 
 So GtkSomeObscureFunction becomes:
 
 g_object_set (G_OBJECT (cell_renderer),
   wrap-width, 60,
   wrap-mode, PANGO_WRAP_WORD,
   NULL);
 
 
  I also wish to set alternate rows backgrounds to white or pale blue,
  how is this done?
 
 To enable different background colors for alternate rows, set the
 rules-hint property of the view to TRUE:
 
 gtk_tree_view_set_rules_hint (view, TRUE);
 
 This will leave the color choices to the theme, which is generally
 what you want.
 
Thanks, a clear answer to question 1 and 1.5 answers to question 2, I
didn't notice the gtk_tree... way ontil after I guessed how to gobject
set it, out of interest, which is better? 

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


Re: g_io_scheduler_job_send_to_mainloop How to?

2010-06-27 Thread Alexander Kuleshov
Thank you for reply. And if i have in build_thumbnails some gtk+
functions, it's thread unsafe. How can i fixed it?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


The list of valid settings for gdk_screen_get_setting()?????

2010-06-27 Thread Eduard Bagrov
Hello!
The latest version of documentation of gdk says that the function
gdk_screen_get_setting()
Retrieves a desktop-wide setting such as double-click time for the
GdkScreen screen.
FIXME needs a list of valid settings here, or a link to more information. 

Where can I find the list of the settings?

-- 
Eduard Bagrov

Linux Verification Center, ISPRAS, RAU
web:http://www.linuxtesting.org
e-mail: ebag...@linuxtesting.org
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: word wrap in liststore column

2010-06-27 Thread Florian Müllner
Hi,

El dom, 27-06-2010 a las 18:19 +1000, Mick escribió:
 Thanks, a clear answer to question 1 and 1.5 answers to question 2, I
 didn't notice the gtk_tree... way ontil after I guessed how to gobject
 set it, out of interest, which is better?

Whichever looks better :-)

Seriously, calling g_object_set() for that property will result in a
call to gtk_tree_view_set_rules_hint(), so both ways are equivalent(*).
Choose whatever you consider clearer / more readable.


Florian

(*) g_object_set() has to wrap/unwrap the parameter into a GValue first,
so there's a tiny overhead - ignore that unless you call it in a
loop for say 1000 objects
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GTK+ 2.90.4 released

2010-06-27 Thread Matthias Clasen
GTK+ 2.90.4 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/2.90/
 http://download.gnome.org/sources/gtk+/2.90/


73c1f474c9fc5c442097a1a8f2fa1ba4be514f182163ed2112085c46a1f57bb2  gtk
+-2.90.4.tar.bz2
b77313e226816e4704918aa914564f10c0cf7a4253f335393f4a933c22ae4a0e  gtk
+-2.90.4.tar.gz

This is the a development release leading toward 3.0.

Notes:

 * GTK+ 3 will be parallel installable with GTK+ 2.x, and
   this release has been prepared to test this by renaming
   all .pc files, libraries, include paths, and so forth,
   to include a '3.0' component.

 * GTK+ 3 will remove deprecated API from the GTK+ 2.x series
   and make struct members unavailable that have been GSEALed
   in 2.x. Therefore, applications can be prepared for porting
   to GTK+ 3 by making sure that they build with
-DGTK_DISABLE_DEPRECATED
   and -DGSEAL_ENABLE.

 * Bugs should be reported to http://bugzilla.gnome.org.


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.x 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/


Contributing


GTK+ is a large project and relies on voluntary contributions.
We are actively searching for new contributors in various areas
and invite everyone to help project development.
If you are willing to participate, please subscribe to the project
mailing lists to offer your help and read over our list of vacant
project tasks:
   http://live.gnome.org/GtkTasks


Overview of Changes from GTK+ 2.90.3 to 2.90.4
==

* GSEAL is now enabled by default

* gdk-pixbuf has been moved into a separate module

* The GtkExtendedLayout interface has been renamed to
  GtkSizeRequest

* gtk_init warns if it detects GTK2.x and GTK3 being used
  in the same process

* Misc new API:
 gtk_accessible_set_widget
 gtk_message_dialog_get_message_area
 gtk_font_selection_dialog_get_font_selection
 gtk_window_group_get_current_grab
 gtk_table_get_size
 gtk_button_get_event_window
 gdk_device_manager_get_client_pointer
 gdk_image_get_pixels

* Bugs fixed:
 522756 gnome-appearance-properties crashed with SIGSEGV...
 620832 make _gtk_window_group_get_current_grab() public
 621250 Missing accessors for GtkRange has_stepper_X
 621685 Add gdk_device_manager_get_client_pointer() ...
 621690 Enable per-device events on gtk_widget_realize()
 621927 Bug in gtk/Makefile.in: affects gtktypefuncs.c
 622011 Don't handle connecting-to-device state reason
 622581 [GSEAL] GtkButton has no accessor for event_window
 622765 Duplicate symbols in Gdk on OSX
 622827 test/testapplication.c doesn't build in quartz

* Translation updates:
 Arabic
 Armenian
 Galician
 Slovenian
 Spanish


Thanks to all contributors:
Tristan Van Berkom
Emmanuele Bassi
Javier Jardón
Murray Cumming
Chris Kühl
Vincent Untz
Federico Mena Quintero
Paolo Borelli
Carlos Garnacho
Marek Kasik
Ignacio Casal Quinteiro
Colin Walters
John Ralls


June 27, 2010
Matthias Clasen


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

GTK+ 2.21.3 released

2010-06-27 Thread Matthias Clasen
GTK+ 2.21.3 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/2.21/
 http://download.gnome.org/sources/gtk+/2.21/


e1169311487c726fed2929a0856deb05a30f79171b3097a5afd8c7c4621cd0f1  gtk
+-2.21.3.tar.bz2
ef4c69ed21720329245f3538092319509dc5e35de9bb412aa6fcb44407417349  gtk
+-2.21.3.tar.gz

This is a development release leading toward 2.22.

Notes:

 * GTK+ 2.22 is planned to be the last stable GTK+ 2.x release,
   to be released in parallel with GTK+ 3. It will not receive
   major feature work beyond API additions that are required
   to facilitate porting to GTK+ 3.

 * Installing this version will overwrite your existing
   copy of GTK+ 2.20. If you have problems, you'll need
   to reinstall GTK+ 2.20.

 * GTK+ 2.22 will be source and binary compatible with
   the GTK+ 2.20 series; however, the new API additions
   are not yet finalized, so there may be incompatibilities
   between this release and the final 2.22 release.

 * Bugs should be reported to http://bugzilla.gnome.org.


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.x 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/


Contributing


GTK+ is a large project and relies on voluntary contributions.
We are actively searching for new contributors in various areas
and invite everyone to help project development.
If you are willing to participate, please subscribe to the project
mailing lists to offer your help and read over our list of vacant
project tasks:
   http://live.gnome.org/GtkTasks


Overview of Changes from GTK+ 2.21.2 to 2.21.3
==

* gdk-pixbuf has been moved into a separate module

* gtk_init warns if it detects GTK2.x and GTK3 being used
 in the same process

* Misc new API:
 gtk_accessible_set_widget
 gtk_message_dialog_get_message_area
 gtk_font_selection_dialog_get_font_selection
 gtk_window_group_get_current_grab
 gtk_table_get_size
 gtk_button_get_event_window
 gdk_device_manager_get_client_pointer
 gdk_image_get_pixels

* Bugs fixed:
 522756 gnome-appearance-properties crashed with SIGSEGV...
 615666 GTK_OBJECT_FLAGS() should be deprecated
 621136 GtkCalendar: Some functions always return TRUE
 621250 Missing accessors for GtkRange has_stepper_X
 621414 Can't select file on file browser popup after...
 621683 gtk_menu_attach_to_widget() should emit...
 621775 Space symbol missed in Resources chapter
 622011 Don't handle connecting-to-device state reason
 622371 Need gtk_accessible_set_widget
 622581 GtkButton has no accessor for event_window

Thanks to all contributors:
Benjamin Otte
Javier Jardón
Yaakov Selkowitz
Vincent Untz
Federico Mena Quintero
Tor Lillqvist
Thomas Wood
Stanislas Marquis
Chris Kühl
Marek Kasik
Ignacio Casal Quinteiro
Tristan Van Berkom


June 27, 2010
Matthias Clasen


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

Re: GIOScheduler example need

2010-06-27 Thread Ardhan Madras
Hi,

 Where Win:
 
 typedef struct _Win
 {
 typedef struct _MainWin
 {
 GtkWindow parent;
 GtkWidget* scroll;
 GtkWidget* box;
 }Win;

I'm not quite sure how you defined your data type here, but if you are just 
typedef-ing a structure of course you can pass it to the function just like 
another pointer, you can use struct _Win*, or Win*. The second method is better 
than the first in case you need Win to be a opaque type.

Ardhan,


--- kuleshovm...@gmail.com wrote:

From: Alexander Kuleshov kuleshovm...@gmail.com
To: aj...@knac.com, gtk-app-devel-list@gnome.org
Subject: Re: GIOScheduler example need
Date: Fri, 25 Jun 2010 20:23:15 +0600

Thank you very much for you help. you realy helped me. Can i asked
last question about parameters :)

If on of the parameters structure too. For example:

static gboolean job_func(int a, Win* b)
{
 ...
}

Where Win:

typedef struct _Win
{
typedef struct _MainWin
{
GtkWindow parent;
GtkWidget* scroll;
GtkWidget* box;
}Win;

Thank you.




_
Listen to KNAC, Hit the Home page and Tune In Live! --- http://www.knac.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list