Re: Is there a general signal a-la text-edited for GtkEntry

2009-10-06 Thread Ardhan Madras
Hi Todor,

GtkEditable is implemented by GtkEntry, so you can pass a GtkEditable's 
changed signal to the GtkEntry widget.

   - Ardhan


--- ttodo...@gmx.net wrote:

From: Todor Todorov ttodo...@gmx.net
To: Gtk App Devel List gtk-app-devel-list@gnome.org
Subject: Is there a general signal a-la text-edited for GtkEntry
Date: Mon, 05 Oct 2009 16:34:42 -0400

Hi list

I was looking at the docs for GtkEntry in search of a general signal 
which is emitted when the text in the entry changes - no matter the 
reason. I would like to escape the situation where I would have to 
connect every possible signal like backspace, paste-clipboard, 
insert-at-cursor, etc to the same callback when all I'm interested in 
is that the text in the widget changed. Any pointers on how to achieve 
this, if possible at all?

Regards,

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




_
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


GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
Hi All,
In newer versions of Gtk+[After GIcon addition] user is not able to add
mixed images in IconView that is file path plus named icons.
User will prefer named icons over file path to have consistent look and
feel but all required icons may not be available in icon theme so he may
need to use mix of these in some cases.
Are such scenarios discouraged or is their any workaround available?
thanks for your time.

--
Regrads,
Amol


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


client-side windows and XQueryTree

2009-10-06 Thread Mario Kemper
Hi there,

I'm the developer of Shutter (a screenshot taking application written
with gtk2-perl).
After upgrading to the latest versions of Gnome (2.28) and Gtk+ during
the last days I've discovered that the client-side window mechanism is
breaking some of the functionalities of Shutter.

There is a function called Section that allows you to capture one of
the subwindows of a foreign window by moving the mouse over it.

The Section function queries the window tree information by calling an
xlib function, XQueryTree. I know that before Gtk+ 2.18 most of the
widgets had a corresponding xwindow. The information about the
subwindows were used to detect them and draw a rectangle around them
that illustrated their geometry.

If I understand the changes correctly this means that the XServer no
longer knows about the subwindow hierarchy of a Gtk+ window and I can't
use the XQueryTree function any longer, right?
I know that is possible to query the children of a GDK-window, but this
works only if your own application created that window. Shutter needs to
get the children of foreign toplevel windows.

Does anyone have an idea on how this problem could be solved?
Maybe with the help of AT-SPI?
Accerciser is using it (the python bindings) to query the structure of
toplevel windows:
http://live.gnome.org/GAP/PythonATSPI

But I would love to see a solution that I can implement with perl ;-)

Thank you very much for your help. I hope I've explained everything
clearly enough.

Regards
Mario

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


How does the dialog's default button respond enter key

2009-10-06 Thread wjh
Hi all:
I have a question, in Gtk+ dialog,there is a GtkListStore
Widget, when user select the list's entry and then press the enter key,
I want programe make the dialog's default OK button responds the
entre key signal and destory the dialog immediately. But the list
widget intercept the signal, default button does not! how can i?

thanks!


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


Resizing

2009-10-06 Thread John Coppens
Hello all,

Though I've read a load of pages, I can't seem to solve the following
problem:

- I have a (top-level) window, with a vbox, then a vpanel, a frame, an
'alignment' and a table (listed in the order of nesting).

When I change something in the table, which makes it wider, the table
gets wider, wider than the frame, which doesn't resize, and neither does
the rest upwards in the hierarchy. 

I understand that normally the size allocation starts from the window
down. How do I resize from de table up?

I tried with gtk_container_check_resize on the top vbox, and several
other tricks but I can't get it to work.

Any references to examples, suggestions?
John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
Hi All,
In newer versions of Gtk+[After GIcon addition] user is not able to add
mixed images in IconView that is file path plus named icons.
User will prefer named icons over file path to have consistent look and
feel but all required icons may not be available in icon theme so he may
need to use mix of these in some cases.
Are such scenarios discouraged or is their any workaround available?
thanks for your time.

--
Regrads,
Amol


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


Re: GtkIconView Pixbuf rendering

2009-10-06 Thread Christian Dywan
Am Tue, 06 Oct 2009 16:13:00 +0530
schrieb Amol Kulkarni amolgkulka...@gmail.com:

 Hi All,
 In newer versions of Gtk+[After GIcon addition] user is not able to
 add mixed images in IconView that is file path plus named icons.
 User will prefer named icons over file path to have consistent look
 and feel but all required icons may not be available in icon theme so
 he may need to use mix of these in some cases.
 Are such scenarios discouraged or is their any workaround available?
 thanks for your time.

Hey Amol,

can you be more specific about what you are trying to do? How are you
loading pixbufs into the model? Are you manipulating cell renderers? If
you have a small code example that worked in older GTK+ releases but
not with 2.18 that would be great.

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


Re: GtkIconView Pixbuf rendering

2009-10-06 Thread Amol Kulkarni
Hi Christian,
I will attach a testcase. 
please find my reply inline for your overview
On Tue, 2009-10-06 at 13:33 +0200, Christian Dywan wrote:
 Am Tue, 06 Oct 2009 16:13:00 +0530
 schrieb Amol Kulkarni amolgkulka...@gmail.com:
 
  Hi All,
  In newer versions of Gtk+[After GIcon addition] user is not able to
  add mixed images in IconView that is file path plus named icons.
  User will prefer named icons over file path to have consistent look
  and feel but all required icons may not be available in icon theme so
  he may need to use mix of these in some cases.
  Are such scenarios discouraged or is their any workaround available?
  thanks for your time.
 
 Hey Amol,
 
 can you be more specific about what you are trying to do? How are you
 loading pixbufs into the model? Are you manipulating cell renderers? If
 you have a small code example that worked in older GTK+ releases but
 not with 2.18 that would be great.

  I have two columns in model one of STRING type and one of PIXBUF type.
  i set icon-name to use data from STRING type column and pixbuf to use
data from PIXBUF column of model through gtk_cell_layout_set_attributes.
e.g 
  gtk_cell_layout_set_attributes
(icon_view,cell,icon-name,0,pixbuf,1,NULL);
where 0 = STRING type column
  1 = PIXBUF type column

if i have icon present in icon theme i set icon-name for corresponding
item if not then i set pixbuf from some filepath.
But in this case it will display only named icons[since attribute list
is reversed it will first set pixbuf property of renderer and then it
will set icon-name which will override previously set pixbuf].

It used to work in 2.12.9 but not in 2.14.3 onwards

Thanks.
Amol


 
 ciao,
 Christian

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


[PATCH] Fix yet another --with-threads bug: using pipe instead of logical OR

2009-10-06 Thread Andrew W. Nosenko
Unfortunately, at the time of writing
2bdf87e Restore behavior of --with-threads without argument

I was too concentrated on --with-threads without arguments and left
second problem in this check unattended: the test chain was built using
'|' pipe instead of '||' logical OR.

As consequence, case --with-threads=pthread remained broken, and
enabling threads by default become broken if neither --with-threads nor
--without-threads passed to configure at all.

* configure.in: use '||' for logical OR operator as it should to be
instead of '|' (pipe).
---
 configure.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 4d540cf..627ce48 100644
--- a/configure.in
+++ b/configure.in
@@ -886,7 +886,7 @@ if test $with_threads = no ; then
 else
 echo Enabling multithreaded support
 dnl Use pthread by default
-if test $with_threads = pthread | test $with_threads =  | test 
$with_threads = yes ; then
+if test $with_threads = pthread || test $with_threads =  || test 
$with_threads = yes ; then
 AC_CHECK_HEADER(pthread.h,
AC_CHECK_LIB(pthread, pthread_join,[
   THREAD_LIBS=-lpthread
-- 
1.6.4.4


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


Re: [PATCH] Fix yet another --with-threads bug: using pipe instead of logical OR

2009-10-06 Thread Andrew W. Nosenko
Sorry, wrong e-mail address selected (it was intended for libxml2)

Please ignore.

On Tue, Oct 6, 2009 at 17:19, Andrew W. Nosenko
andrew.w.nose...@gmail.com wrote:
 Unfortunately, at the time of writing
    2bdf87e Restore behavior of --with-threads without argument

 I was too concentrated on --with-threads without arguments and left
 second problem in this check unattended: the test chain was built using
 '|' pipe instead of '||' logical OR.

 As consequence, case --with-threads=pthread remained broken, and
 enabling threads by default become broken if neither --with-threads nor
 --without-threads passed to configure at all.

 * configure.in: use '||' for logical OR operator as it should to be
 instead of '|' (pipe).
 ---
  configure.in |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/configure.in b/configure.in
 index 4d540cf..627ce48 100644
 --- a/configure.in
 +++ b/configure.in
 @@ -886,7 +886,7 @@ if test $with_threads = no ; then
  else
     echo Enabling multithreaded support
     dnl Use pthread by default
 -    if test $with_threads = pthread | test $with_threads =  | test 
 $with_threads = yes ; then
 +    if test $with_threads = pthread || test $with_threads =  || test 
 $with_threads = yes ; then
         AC_CHECK_HEADER(pthread.h,
            AC_CHECK_LIB(pthread, pthread_join,[
               THREAD_LIBS=-lpthread
 --
 1.6.4.4






-- 
Andrew W. Nosenko andrew.w.nose...@gmail.com
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: [REMINDER] GTK+ IRC Team meeting - 2009-10-06

2009-10-06 Thread Emmanuele Bassi
hi;

the meeting is today. :-)

On Mon, 2009-10-05 at 11:26 +0100, Emmanuele Bassi wrote:
 hi everyone;
 
 this is a reminder for the GTK+ team IRC meeting,
 
 * date: 2009-10-06
 * time: 20:00 UTC [0]
 * channel: #gtk-devel on irc.gnome.org
 * agenda:
   - gobject-performance branch status 
   - gtk+ 2.90 branch 
   - GLib 2.22 branch and future 
   - GtkFileSystemModel branch status 
   - Miscellaneous 
 
 as always, everyone is invited to attend.

forgot the link to the time zone converter:


http://www.timeanddate.com/worldclock/fixedtime.html?month=10day=6year=2009hour=20min=0sec=0p1=0

ciao,
 Emmanuele.



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


Re: Fwd: Persistent Binary Search Trees

2009-10-06 Thread Soeren Sandmann
Dana Jansens d...@cg.scs.carleton.ca writes:

 There are 2 other BSTs that would work effectively to provide a
 persistent BST, while also maintaining a very efficient implementation
 for when persistence is not used.  They are:
  - Treaps
  - Red-Black Trees

 Treaps can be expected to outperform Red-Black Trees for any sized
 tree.  The constant in the search cost for a Treap is Approximately
 equal to AVL trees (and slightly less for large trees), and is always
 smaller than Red-Black Trees. (It's a small constant regardless.)
 Treaps are also much simpler to implement, requiring less complicated
 code. However Treaps are a randomized data structure, which some
 people try to stay away from.
 
For what it's worth the GSequence data structure, which is already in
GLib, is a treap internally, but it has a list-like API
externally. Even though it is a treap internally, it is not really
randomized. It hashes pointers instead of randomizing, which has
mostly the same effect.


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


Minutes of the GTK+ Team Meeting - 2009-10-06

2009-10-06 Thread Emmanuele Bassi
= minutes for the 2009-10-06 meeting =

1. gobject-performance branch status;
 - alexl merged the easier parts of the branch
 - remaining bits not as urgent
 - timj to review the rest

2. gtk+ 2.90 branch;
 - kalikianatoli to push the 2.90 branch to git.gnome.org
 - 2.90: removal of deprecated API, plus minor additions for sealed members
 - rebased periodically on master until merge
 - volunteers welcome
 - pkg-config file bumped to gtk+-3.0
 ACTION: kalikianatoli to add update GTK+/3.0/Tasks
 - API additions before 2.90, backports from 2.90 branch
 - intermediate release or 2.18.* additions?
 - intermediate release (2.20) by Q1 2010
 - a test run for 2.90
 ACTION: mclasen to branch gtk-2-18, master to be 2.20

3. GLib 2.24 branch and future;
 ACTION: mclasen to branch glib-2-20, master to be 2.22
 - gobject-performance
 - class private data
 - GMarkup (entities, namespaces, investigate a DOM layer)
 - TLS (SSL) and proxy support to GSocket
 - GDBus ?
 - GSettings ?

4. GtkFileSystemModel branch status;
 - merge for gtk+ 2.20, right after the branch
 ACTION: federico to merge the branch after rebasing it

5. Miscellaneous;
 - patch reviewers
 - issue: not everyone knows how to review a patch for specific
   subsystems (TextBuffer, TreeView)
 - would be good to have the bug review mail to gtk-devel

next IRC meeting: 2009-10-20

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi

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