Re: updating gtk.org

2010-05-10 Thread Tshepang Lekhonkhobe
On Sun, May 9, 2010 at 16:02, Akmal Abdul Rahman  wrote:
> Hi,
>
> I was compiling GTK+, and everything generally went well. Except that I
> followed the download links on the following page, which linked to GTK+
> v2.18 and GLib v2.22 instead of the latest versions:
> http://www.gtk.org/download-linux.html
>
> I wouldn't mind updating the webpage, if any help is needed.

Questions regrading the website should AFAIK be directed to
gtk-devel-l...@gnome.org. Anyways, there must be pointers on gtk.org
the address of it's git reposotory. Do your changes and present your
patch to that list.


-- 
my place on the web:
floss-and-misc.blogspot.com
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: updating gtk.org

2010-05-10 Thread Emmanuele Bassi
On Sun, 2010-05-09 at 22:02 +0800, Akmal Abdul Rahman wrote:

> I was compiling GTK+, and everything generally went well. Except that
> I followed the download links on the following page, which linked to
> GTK+ v2.18 and GLib v2.22 instead of the latest versions:
> http://www.gtk.org/download-linux.html
> 
> I wouldn't mind updating the webpage, if any help is needed.

please, file a bug against the gtk+ product, website component on
http://bugzilla.gnome.org.

ciao,
 Emmanuele.

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

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


Re: How do i find out if a widget is shown or hidden?

2010-05-10 Thread Chris Vine
On Mon, 10 May 2010 04:31:59 +0200
Lothar Scholz  wrote:
> There seems to be no "gtk_widget_is_shown" or "gtk_widget_is_hidden"
> function. How do i find out if it is already shown?
 
That depends on what you mean.  You can find out if it has been shown or
hidden programmatically by calling GTK_WIDGET_VISIBLE() (or from gtk+-2.18,
gtk_widget_get_visible()). However, that will not tell you whether the
widget is obscured or iconified (that is, whether it is actually
visible on the desktop). You will need to track notify events and state
events to do that.

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


Re[2]: How do i find out if a widget is shown or hidden?

2010-05-10 Thread Lothar Scholz
Hello Chris,

Monday, May 10, 2010, 11:03:31 AM, you wrote:

CV> On Mon, 10 May 2010 04:31:59 +0200
CV> Lothar Scholz  wrote:
>> There seems to be no "gtk_widget_is_shown" or "gtk_widget_is_hidden"
>> function. How do i find out if it is already shown?
CV>  
CV> That depends on what you mean.  You can find out if it has been shown or
CV> hidden programmatically by calling GTK_WIDGET_VISIBLE() (or from gtk+-2.18,
CV> gtk_widget_get_visible()). However, that will not tell you whether the
CV> widget is obscured or iconified (that is, whether it is actually
CV> visible on the desktop). You will need to track notify events and state
CV> events to do that.

Thanks, i thought on X11 it just means this "visible".

So if it is fully covered by other windows or moved out of the range
of the root window.

I will check it.

And what does "mapped" mean?


-- 
Best regards,
 Lotharmailto:llot...@web.de

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


Re: Re[2]: How do i find out if a widget is shown or hidden?

2010-05-10 Thread jcupitt
On 10 May 2010 11:22, Lothar Scholz  wrote:
> And what does "mapped" mean?

Here's my understanding of what happens when you show a window. I'm
sure I've made some errors and reality is far more complex :(

1) You build the contents with gtk_label_new() and friends. A
window/widget in this state is !_get_visible(). When you want to show
it, you call gtk_widget_show(). After calling _show(), _get_visible()
will start returning TRUE (I think this is correct?), but your window
is a long way from actually being visible to the user.

Most of the rest of the process happens asynchronously (except for
resource allocation, I think) over the next few milliseconds with a
lot of chit-chat back and forth between your program and the
underlying window system.

2) First your window and widget are realized. This is the process of
allocating real window system resources (eg. windows, pixmaps,
colourmaps and so on) to the components of the window. You can
implement a _realize method if you want to be part of this process.

3) Next everything is configured. This is computing the layout of
widgets within your window. You can implement a _configure_event
method to be part of this process. Erm, I think this happens here,
perhaps it's actually after map.

4) Now things are mapped. This is the process of asking the window
system to display the windows on the screen. map/unmap are a good pair
of events to look for if you want to be aware of window or widget
visibility at the lowest level.

5) Finally expose events come in from the window system, are routed to
your widgets, and cause drawing of the screen to take place. This can
be a long time (many milliseconds) after your original _show() call.

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


gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Kurucz István
Hi!

void on_element_clicked (GtkButton *button, gpointer user_data) {
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) {
g_warning("good");
}
else {
g_warning("wrong");
}
}

If clicked element is toggled, output: "good". But if clicked element
is not toggled, output: "wrong" and "good". Why running twice? This is
GTK+ bug?


Thanks:
Kurucz István

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


Re: How do i find out if a widget is shown or hidden?

2010-05-10 Thread Chris Vine
On Mon, 10 May 2010 12:22:58 +0200
Lothar Scholz  wrote:
> CV> On Mon, 10 May 2010 04:31:59 +0200
> CV> Lothar Scholz  wrote:
> >> There seems to be no "gtk_widget_is_shown" or
> >> "gtk_widget_is_hidden" function. How do i find out if it is
> >> already shown?
> CV>  
> CV> That depends on what you mean.  You can find out if it has been
> CV> shown or hidden programmatically by calling GTK_WIDGET_VISIBLE()
> CV> (or from gtk+-2.18, gtk_widget_get_visible()). However, that will
> CV> not tell you whether the widget is obscured or iconified (that
> CV> is, whether it is actually visible on the desktop). You will need
> CV> to track notify events and state events to do that.
> 
> Thanks, i thought on X11 it just means this "visible".
> 
> So if it is fully covered by other windows or moved out of the range
> of the root window.
> 
> I will check it.

One interesting thing you will find when you do that is that
calling hide on the window will cause GTK_WIDGET_VISIBLE() to return
false but will NOT trigger a window visibility event.  And it will
absolutely not tell you whether the window is obscured or not.

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


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Tadej Borovšak
Hi.

> void on_element_clicked (GtkButton *button, gpointer user_data) {
>    if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) {
>        g_warning("good");
>    }
>    else {
>        g_warning("wrong");
>    }
> }
>
> If clicked element is toggled, output: "good". But if clicked element
> is not toggled, output: "wrong" and "good". Why running twice? This is
> GTK+ bug?

I already responded to your query here[1], but you failed to provide
any additional information about it. So I'm asking again, what exactly
are you doing when user clicks on toggle button? Are you performing
any kind of checks and set the state of toggle button according to the
result?

Tadej

[1] http://gtkforums.com/viewtopic.php?t=6322

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Kurucz István
Hello!

On Mon, May 10, 2010 at 1:56 PM, Tadej Borovšak  wrote:
> So I'm asking again, what exactly
> are you doing when user clicks on toggle button? Are you performing
> any kind of checks and set the state of toggle button according to the
> result?

I'm working a small human-tester program. This is contain a
position-test section with GtkRadiobutton. Source is here:
http://github.com/nevergone/gbraintester (devel branch)


Thanks:
Kurucz István
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Tadej Borovšak
Hi.

I quickly glimpsed at your code and now I see where you're having
troubles. When you click unselected radio button, your
GtkButton::clicked signal handler is called twice: first time signal
is emitted in order to deselect currently active radio button and
second time signal is emitted to select new radio button.

You need to keep in mind that GtkButton::clicked signal is an action
signal, which means that it can be emitted by application without
button being actually pressed.

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Paul Davis
On Mon, May 10, 2010 at 10:38 AM, Tadej Borovšak  wrote:

>
> You need to keep in mind that GtkButton::clicked signal is an action
> signal, which means that it can be emitted by application without
> button being actually pressed.
>

true, and terrible, terrible design :)

still, the same basic issue exists even if you use the correct signal,
"toggled".  one button will have that signal emitted because its now become
active, and another will have it emitted because its now become inactive.

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


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Kurucz István
Hello

On Mon, May 10, 2010 at 4:38 PM, Tadej Borovšak  wrote:
> You need to keep in mind that GtkButton::clicked signal is an action
> signal, which means that it can be emitted by application without
> button being actually pressed.

I found a good signal: "button-press-event"
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-button-press-event


Thanks for all:
Kurucz István :)
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_toggle_button_get_active() error in clicked event?

2010-05-10 Thread Paul Davis
On Mon, May 10, 2010 at 1:24 PM, Kurucz István wrote:

> Hello
>
> On Mon, May 10, 2010 at 4:38 PM, Tadej Borovšak 
> wrote:
> > You need to keep in mind that GtkButton::clicked signal is an action
> > signal, which means that it can be emitted by application without
> > button being actually pressed.
>
> I found a good signal: "button-press-event"
>
> http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-button-press-event
>

keep in mind that "do something on press" and "do something on release" can
have entirely different feelings for the user.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


problem with compiling different C files with a global structure

2010-05-10 Thread Debmalya Sinha
Hello,

Though this might not be the place for this type of query, this problem I'm
giving here is a simplest scale version of a problem when I am trying to
split up a large gtk source code of mine.


I'm trying to compile a program with 3 diff C files.
*main.c*
*call.c*
*global.c*

I want to declare a global structure variable and assign a value to it's
content in *main.c*
then I  will call another function (declared at *call.c* ) to print the
global variable.

I have a structure definition in *global.c* which I have declared as extern
in the common header file *head.h* through another header file *global.h*

Program is not compiling.

Am I missing some points here?


-- 
Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
#include "head.h"

void call(void){

printf("\n%d", a.data);

}
#include "head.h"

struct _s{

int data;

}
#include "head.h"

struct _s a;
a.data=10;

main(){



cal();

}
#include 
#include "global.h"

void call(void);

extern struct _s a;
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: problem with compiling different C files with a global structure

2010-05-10 Thread Robert Pearce
On Tue, 11 May 2010 03:04:56 +0600
Debmalya Sinha  wrote:

> 
> Am I missing some points here?
> 
You mean apart from:
 1) This is a very VERY basic C programming issue, so this is the wrong
place
 2) The compiler gives you some clues when compilation fails, and
you've not reported them
 3) If you read those clues they might help you find the problem
 4) Taking the time to think about things is usually quicker than
waiting for an answer on a mailing list





Now ask yourself how the compiler knows about "data" when compiling
call.c
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: problem with compiling different C files with a global structure

2010-05-10 Thread Leon Opit
Hi Debmalya,

Do not use automatic initialisation in variables with the extern attribute.

Initialise a.data by assignment in main().
This is not the whole story but then your example code is not exactly what
you tried to compile!

(calling cal() in main() ) but defining call in call.c never-the-less you
get the idea)

Leon

On 11 May 2010 07:04, Debmalya Sinha  wrote:

> Hello,
>
> Though this might not be the place for this type of query, this problem I'm
> giving here is a simplest scale version of a problem when I am trying to
> split up a large gtk source code of mine.
>
>
> I'm trying to compile a program with 3 diff C files.
> *main.c*
> *call.c*
> *global.c*
>
> I want to declare a global structure variable and assign a value to it's
> content in *main.c*
> then I  will call another function (declared at *call.c* ) to print the
> global variable.
>
> I have a structure definition in *global.c* which I have declared as
> extern in the common header file *head.h* through another header file *
> global.h*
>
> Program is not compiling.
>
> Am I missing some points here?
>
>
> --
> Regards,
>
> Debmalya Sinha
>
> Research Scientist,
> MS(R) student,
> Computer Science and Engineering
> IIT Kharagpur
>
>
> Fedora Ambassador
> Chandannagar
> India.
>
> sunnywizard.googlepages.com
>
>
> GPG Key : 6E2BD51B
> Keyserver : http://pgp.mit.edu
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: problem with compiling different C files with a global structure

2010-05-10 Thread Debmalya Sinha
On Tue, May 11, 2010 at 3:20 AM, Robert Pearce wrote:

> On Tue, 11 May 2010 03:04:56 +0600
> Debmalya Sinha  wrote:
>
> >
> > Am I missing some points here?
> >
>
Thank you for your kind reply.

> You mean apart from:
>  1) This is a very VERY basic C programming issue, so this is the wrong
> place
>
I've already mentioned that; and since there are many helpful people over
here, I thought it was worth giving a knock.

>  2) The compiler gives you some clues when compilation fails, and
> you've not reported them
>
Yes, they are scope problems issues. And I'm still searching for how exactly
I should do the job.

>  3) If you read those clues they might help you find the problem
>
I'm trying to figure out just that.

>  4) Taking the time to think about things is usually quicker than
> waiting for an answer on a mailing list
>
I agree, but what one does when he has already searched for the problem well
and really into-the-soup?
I took a chance in a belief that someone might give me some clue about doing
neatly what I wanted to do. As you people have always been a great help
Sir.

>
>
>
>
>
> Now ask yourself how the compiler knows about "data" when compiling
> call.c
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>



-- 
Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: problem with compiling different C files with a global structure

2010-05-10 Thread Debmalya Sinha
On Tue, May 11, 2010 at 3:54 AM, Leon Opit  wrote:

> Hi Debmalya,
>
> Do not use automatic initialisation in variables with the extern attribute.
>
> Initialise a.data by assignment in main().
>
ok, I'll keep that in mind.

> This is not the whole story but then your example code is not exactly what
> you tried to compile!
>
> (calling cal() in main() ) but defining call in call.c never-the-less you
> get the idea)
>
> eh, that was a typo !

> Leon
>
> On 11 May 2010 07:04, Debmalya Sinha  wrote:
>
>> Hello,
>>
>> Though this might not be the place for this type of query, this problem
>> I'm giving here is a simplest scale version of a problem when I am trying to
>> split up a large gtk source code of mine.
>>
>>
>> I'm trying to compile a program with 3 diff C files.
>> *main.c*
>> *call.c*
>> *global.c*
>>
>> I want to declare a global structure variable and assign a value to it's
>> content in *main.c*
>> then I  will call another function (declared at *call.c* ) to print the
>> global variable.
>>
>> I have a structure definition in *global.c* which I have declared as
>> extern in the common header file *head.h* through another header file *
>> global.h*
>>
>> Program is not compiling.
>>
>> Am I missing some points here?
>>
>>
>> --
>> Regards,
>>
>> Debmalya Sinha
>>
>> Research Scientist,
>> MS(R) student,
>> Computer Science and Engineering
>> IIT Kharagpur
>>
>>
>> Fedora Ambassador
>> Chandannagar
>> India.
>>
>> sunnywizard.googlepages.com
>>
>>
>> GPG Key : 6E2BD51B
>> Keyserver : http://pgp.mit.edu
>>
>> ___
>> gtk-list mailing list
>> gtk-list@gnome.org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>
>>
>


-- 
Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK+ 2.90.0 released

2010-05-10 Thread Matthias Clasen
GTK+ 2.90.0 is now available for download at:

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

sha256 sums:
b18536511da28173c37f88a395e9c9269f4aef13ee439a712382ab8a78eba356  gtk
+-2.90.0.tar.bz2
0c669bf7cc2e38af9a51d2d41e4f43ee5cf5bdcccaee9944741502fac2c4e134  gtk
+-2.90.0.tar.gz

This is the first 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.20.x to 2.90.0
==

* GtkExtendedLayout: Width-for-height geometry management.
  This change is known to currently cause minor problems in
  some applications, see
  617444 GNU emacs warnings with extended layout GTK+
  617556 inkscape toolbars broken with extended layout

* gtk_icon_theme_load_symbolic: Support for 'symbolic' icons

* Applications can indicate their preference for a dark theme
  variant by setting GtkSettings::gtk-application-prefer-dark-theme

* GtkTreeModelFilter can be more usefully subclassed

* Tooltip positioning has been changed to make it less likely
  that the tooltip covers up the widget that it relates to

* Deprecated functions have been removed (though some more work
  remains to be done in GDK)

* This release is parallel installable with GTK+ <= 2.22, by renaming
  .pc files, libraries, include paths, module paths, gtkrc files, etc
  to include a '3.0' in its name.

* Updated translations:
 Basque
 Bengali
 Bengali India
 Catalan
 Catalan (Valencian)
 Crimean Tatar
 Danish
 Dutch
 Galician
 Greek
 Indonesian
 Kannada
 Kazakh
 Latvian
 Marathi
 Norwegian bokmål
 Spanish
 Thai
 Ukrainian


Thanks to all contributors:
Javier Jardón
Tor Lillqvist
Vincent Untz
Michael Natterer
Stefan Kost
Patrick Bernaud
Steven Harms
Tadej Borovšak
Claudio Saavedra
Mike Gorse
Claude Paroz
Torsten Schönfeld
Florian Scandella
Emmanuele Bassi
Mirsal Ennaime
Johannes Schmid
Tristan Van Berkom
Benjamin Otte
John (J5) Palmieri
Danielle Madeley
Colin Walters
Christian Dywan
Cody Russell
Richard Hughes
Bastien Nocera


May 11, 2010
Matthias Clasen


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