Re: Label resizing window, ellipsizing

2012-01-02 Thread Tristan Van Berkom
Try setting "width-chars" property as well as "max-width-chars" property.

GtkLabel apis could use a face-lift. It's possible that the default minimum
width request exceeds the 10 max-width-chars which you set (which is
what I assume is causing this problem).

Cheers,
  -Tristan

On Fri, Dec 9, 2011 at 1:39 AM, David Gomes  wrote:
> Hello there,
>
> I was wondering if there was a way of avoiding a label (in a notebook)
> to resize the window when the text in it is too big.
>
> I heard of ellipsizing, and EllipsizeMode.END seems great for me, but
> if I ellipsize it, it will be ellipsized even if the label is small.
>
> So, I want to ellipsize it only when it becomes too big (over X
> pixels), but I only seem to be able to limit it's width in chars using
> max_width_chars. I also tried setting my label's max_width_chars to
> 10, but the string could still increase a lot, so it didn't work.
>
> What do you recommend? Ideally, I would like to have a maximum width
> in pixels, but chars is ok too.
>
> /* Relevant code (vala) */
> tab.label.max_width_chars = 10;
>
> --
> David Gomes
> ___
> 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


Re: troubles porting from ubuntu to debian. [??]

2012-01-02 Thread Gary Kline
well, after some hours of findings and fixings bugs, the
port works.

i use espeak [etc, etc] | aplay that works here on ubuntu.
the "espeak -f " causes strange driver problems here.
in the morninh, i'll try the other means espeak -f on my
netbook.

on other words, i'm close[r].  if anybody wants to check out
the gtk app, let me know.

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

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


release resource of gtk

2012-01-02 Thread wenmhappy
hi everyone,
 
I run GtkLauncher(webkit/gtk/directfb), I find gtk/directfb are not 
released even if gtk_widget_destroy(top_window) has been called before 
gtk_main() quit.
I don`t find function such as gtk_term or gtk_deinit() to release gtk . 
  How to release whole gtk resources when application quit?
 
Thanks.
Best regards.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK app with scrolled window crashing trying to show a widget inside

2012-01-02 Thread Moritz Renftle
Thank you very much for your immediate response, this resolved my
problem!

Am Freitag, den 30.12.2011, 10:08 -0700 schrieb Michael Torrie:
> On 12/30/2011 05:52 AM, David Nečas wrote:
> > On Fri, Dec 30, 2011 at 01:28:32PM +0100, Moritz Renftle wrote:
> >> i want to make one of those widgets visible from
> >> another thread
> > 
> > Use glib.idle_add() in that other thread to subsequently execute the
> > actual Gtk+ code in the thread running the Gtk+ main loop.
> 
> http://unpythonic.blogspot.com/2007/08/using-threads-in-pygtk.html
> 
> It used to be that threading issues came up every week on the list.  As
> David says, the recommended way is using idle_add.  However if you use
> gdk locks appropriately, on Linux you can call Gtk calls directly from
> threaded code.
> 
> http://www.pardon-sleeuwaegen.be/antoon/python/page0.html
> 
> But since this won't work so well on Windows, the idle_add() technique
> is recommended as it is most safe and most portable.
> ___
> 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

gtk_button_set_label does not change the label

2012-01-02 Thread ghum

Hello,

I am trying to change button label with gtk_button_set_label. the code
doesn't  output any error messages, but the label doesn't change.
Here is code:

#include 

void pradetibutton_clicked (GtkWidget *proglog, GtkTextBuffer *logbuffer,
GtkWidget *pradetibutton, gpointer data)
{
GtkTextIter start, end;
gtk_text_buffer_get_bounds (logbuffer, &start, &end);
gtk_text_buffer_set_text (logbuffer, "pakeistas tekstas", -1);
gtk_button_set_label (GTK_BUTTON(pradetibutton), "baigti");

while (g_main_context_iteration (NULL, FALSE));
}
void destroy(GtkWidget *widget, gpointer data)
{
gtk_main_quit ();
}

int main( int argc, char *argv[])
{
gtk_init (&argc, &argv);
GtkWidget *window;
GtkWidget *vbox1;
GtkWidget *hbox1;
static GtkWidget *pradetibutton;
GtkWidget *proglog;
GtkTextBuffer *logbuffer;
GtkWidget *scwind1;
gtk_init(&argc, &argv);

gtk_init (&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "DP2");
gtk_window_set_default_size(GTK_WINDOW(window), 500, 300);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy),
NULL);  

vbox1=gtk_vbox_new (FALSE,5);
gtk_container_add (GTK_CONTAINER (window), vbox1);

hbox1=gtk_hbox_new (FALSE,5);
gtk_box_pack_start (GTK_BOX(vbox1),hbox1,FALSE, FALSE, 1);
pradetibutton = gtk_button_new_with_label ("pradėti");


gtk_box_pack_start (GTK_BOX(hbox1),pradetibutton,FALSE, FALSE, 1);

proglog = gtk_text_view_new();
logbuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (proglog));
gtk_text_buffer_set_text (logbuffer, "Hello, this is some text", -1);
scwind1 = gtk_scrolled_window_new(NULL, NULL);
gtk_box_pack_end (GTK_BOX(vbox1),scwind1,TRUE, TRUE, 3);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW (scwind1),
proglog);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scwind1),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
g_signal_connect (G_OBJECT (pradetibutton), "clicked", G_CALLBACK
(pradetibutton_clicked), logbuffer);
gtk_widget_show (scwind1);
gtk_widget_show (proglog);
gtk_widget_show (pradetibutton);
gtk_widget_show_all(window);

gtk_main();

return 0;
}

thanks
-- 
View this message in context: 
http://old.nabble.com/gtk_button_set_label-does-not-change-the-label-tp32950770p32950770.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.

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

Label resizing window, ellipsizing

2012-01-02 Thread David Gomes
Hello there,

I was wondering if there was a way of avoiding a label (in a notebook)
to resize the window when the text in it is too big.

I heard of ellipsizing, and EllipsizeMode.END seems great for me, but
if I ellipsize it, it will be ellipsized even if the label is small.

So, I want to ellipsize it only when it becomes too big (over X
pixels), but I only seem to be able to limit it's width in chars using
max_width_chars. I also tried setting my label's max_width_chars to
10, but the string could still increase a lot, so it didn't work.

What do you recommend? Ideally, I would like to have a maximum width
in pixels, but chars is ok too.

/* Relevant code (vala) */
tab.label.max_width_chars = 10;

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


Re: error in compile gtk3 in OSX

2012-01-02 Thread Luis Lopez
Apple's gcc doesn't seems to have the -x option that is passed from g-ir-scan.

As a workaround, I use "make V=1" to see what is executed and I
copy-paste the full command excluding the "-x".

After doing this I can run make again with no errors.

2011/12/6 xiaobo :
> Hi, All
>
> I got a error when I compile gtk3 in OSX .
> This is log.
>
> .
> .
>  CCLD   libgtk-3.la
>  CC     queryimmodules.o
>  CCLD   gtk-query-immodules-3.0
>  GISCAN Gtk-3.0.gir
> Usage: g-ir-scanner [options] sources
>
> g-ir-scanner: error: no such option: -x
> make[4]: *** [Gtk-3.0.gir] Error 2
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> what is g-ir-scanner ?
>
> I need you help, please  :)
> ___
> 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

GTK 3 support status

2012-01-02 Thread John Lindgren

Hi,

I am wondering what the status of GTK 3 is at this time with regard to 
bugs reported by application developers.  I reported a rather serious 
bug (https://bugzilla.gnome.org/show_bug.cgi?id=662043) a month and a 
half ago, and there is still no comment from any GTK developer.  The bug 
affects the Audacious project to the point that we will be forced to go 
back to using GTK 2.x if it is not resolved soon.  I agree with the 
conclusion of another user that this is a bug "breaking [the] UI design" 
of GTK applications.


Thank you for your attention.

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


Usage of gtk_list_store_set_valuesv()

2012-01-02 Thread Antonio Weber
Hi list,

I'm trying to write a small app which uses a GtkTreeView to display a table. 
For some reason it does not work as expected so I extracted my usage in a small 
tableTest app (which a attach to this mail).
I have 10 columns and 100 rows.

Basically this is the central function:

static void populateTable(GtkTreeView *treeView) {
    int i;
    char data[1024];
    GType types[COLUMN_COUNT];
    GtkTreeViewColumn *column;

    for(i = 0; i < COLUMN_COUNT; i++) {
    sprintf(data, "%d", i + 1);
    types[i] = G_TYPE_STRING;
    
    column = gtk_tree_view_column_new_with_attributes(data, 
gtk_cell_renderer_text_new(), "text", 0, NULL);
    gtk_tree_view_append_column(GTK_TREE_VIEW(treeView), column);
    }

    int j;
    GtkTreeIter iter;
    GtkListStore *listStore = gtk_list_store_newv(COLUMN_COUNT, types);

    for(i = 0; i < ROW_COUNT; i++) {
    /*
    GValue values[COLUMN_COUNT];
    gint columnIds[COLUMN_COUNT];
    */

    GValue *values = g_slice_alloc0(sizeof(GValue) * COLUMN_COUNT);
    gint *columnIds = g_slice_alloc0(sizeof(gint) * COLUMN_COUNT);
    
    memset(values, 0x0, sizeof(values));
    
    gtk_list_store_append(listStore, &iter);

    for(j = 0; j < COLUMN_COUNT; j++) {
    
    sprintf(data, "%d", j + 1);
    printf("Data=%s\n", data);

    g_assert(!G_VALUE_HOLDS_STRING(&values[j]));
    g_value_init(&values[j], G_TYPE_STRING);
    g_value_set_string(&values[j], data);

    columnIds[j] = j;
    }
    gtk_list_store_set_valuesv(listStore, &iter, columnIds, values, 
COLUMN_COUNT);
    g_slice_free1(sizeof(GValue) * COLUMN_COUNT, values);
    g_slice_free1(sizeof(gint) * COLUMN_COUNT, columnIds);
    }
    gtk_tree_view_set_model(treeView, GTK_TREE_MODEL(listStore));    
}

I expected that in each row I see
col '1' = '1'  | col '2' = '2' etc...

But In my case each cell holds the value '1'

What do I wrong here?

Thanks a lot,
Antonio

___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK 3 support status

2012-01-02 Thread tristan . van . berkom
On 2011-12-06, at 8:12 PM, Andrew Cowie  wrote:

> On Tue, 2011-12-06 at 17:47 +0900, Tristan Van Berkom wrote:
> 
>> gtk_widget_set_size_request() should still succeed with the expected 
>> behaviour
>> of setting the minimum size of a widget,
> 
> So, does it do so for GtkLabel? ie, is it acceptable to call it?
> 
> [this thread has become a bit confusing]


Yes, gtk_widget_set_size_request() will
set the minimum size for a label, as it
will for any widget.

Don't confuse that with limiting a widget's size,
a label will request a minimum size based on
it's content and configuration, it may require more
width than the explicit minimum size set by the
user.

A widget's size can only be limited by limiting
what content will be displayed inside it (for label
widgets this is done using width-chars/max-width-chars
in conjunction with ellipsizing/wrapping).

Cheers,
 -Tristan


> AfC
> Sydney
> 
> 
> ___
> 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


Re: troubles porting from ubuntu to debian. [??]

2012-01-02 Thread Gary Kline



nope:: an important part of what I need on my laptop, like maybe
a gnome package, is missing.  I tried to joining the gnome
accessible group during a switch over in their mailing list
utility.  


On Mon, Jan 02, 2012 at 02:42:43PM -0800, Gary Kline wrote:
> Date: Mon, 2 Jan 2012 14:42:43 -0800
> From: Gary Kline 
> To: David Ne??as 
> Subject: Re: troubles porting from ubuntu to debian. [??]
> Cc: GTK Devel List 
> 
> On Mon, Jan 02, 2012 at 09:29:23PM +0100, David Ne??as wrote:
> > Date: Mon, 2 Jan 2012 21:29:23 +0100
> > From: David Ne??as 
> > Subject: Re: troubles porting from ubuntu to debian. [??]
> > To: Gary Kline 
> > Cc: GTK Devel List 
> > 
> > On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote:
> > > main.c:157: warning: implicit declaration of function ‘chdir’
> > > main.c:362: warning: implicit declaration of function ‘sleep’
> > 
> > Declared in unistd.h.  Forgot to include it?
> 
> 
>   probably; anyway, i'm not concerned about those two.
> 
> > 
> > > main.c: In function ‘inc_button_click_cb’:
> > > main.c:242: warning: implicit declaration of function
> > > ‘gtk_widget_is_sensitive’
> > > ...
> > > Here is the code that has gtk_widget_is_sensitive().  i gave up on
> > > this after a couple hours [last night].
> > 
> > gtk_widget_is_sensitive() appeared in Gtk+ 2.18.
> > 
> > Use devhelp or look at the on-line reference documentation to see when a
> > specific symbol appeared.
> > 
> > Use gtkdoc-depscan to scan your source code for functions that are
> > available only since a specific Gtk+ version.
> > 
> > Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+.
> 
> 
>   could you please explain more about this macro and how to
>   resolve the complaint?
> 
>   as you note, things do only now frown using the macro def:
> 
> 
>   main.c:243: warning: implicit declaration of function
>   ‘GTK_WIDGET_SET_SENSITIVE’
>   main.c: In function ‘dec_button_click_cb’:
> 
>   how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS 
> *implicit*?
> 
>   this program works on ubuntu 11.10 which is a direct fork of
>   debian.  i  was certain it would work on my laptop whivh has the
>   latest debian.
>
> 
>[BTZZZT!] :-)
> 
>   gary
> > 
> > Yeti
> > 
> 
> -- 
>  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
>Journey Toward the Dawn, E-Book: http://www.thought.org
>   The 8.57a release of Jottings: http://jottings.thought.org
>  Twenty-five years of service to the Unix community.
> 
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.98a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
  server ethic 


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


Re: troubles porting from ubuntu to debian. [??]

2012-01-02 Thread David Nečas
On Mon, Jan 02, 2012 at 02:42:43PM -0800, Gary Kline wrote:
>   could you please explain more about this macro and how to
>   resolve the complaint?

Use GTK_WIDGET_IS_SENSITIVE() instead of gtk_widget_is_sensitive().

>   as you note, things do only now frown using the macro def:
> 
>   main.c:243: warning: implicit declaration of function
>   ‘GTK_WIDGET_SET_SENSITIVE’
>   main.c: In function ‘dec_button_click_cb’:
> 
>   how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS 
> *implicit*?

GTK_WIDGET_SET_SENSITIVE is not GTK_WIDGET_IS_SENSITIVE.

GTK_WIDGET_SET_SENSITIVE does not exist, there has always been a
function for this: gtk_widget_set_sensitive().

Also note there are two kinds of functions: the -get-/-set- kind and the
-is- kind, the former for querying/setting whether the widget can be
sensitive and the latter for querying whether it actually is sensitive.
See the documentation.

>   this program works on ubuntu 11.10 which is a direct fork of
>   debian.  i  was certain it would work on my laptop whivh has the
>   latest debian.

Ubuntu contains a newer verison of Gtk+.  You cannot expect a program
developed with a newer version to work with an older version unless you
take care to use only functions that are present in the older version.

Yeti

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

Re: troubles porting from ubuntu to debian. [??]

2012-01-02 Thread Gary Kline
On Mon, Jan 02, 2012 at 09:29:23PM +0100, David Ne??as wrote:
> Date: Mon, 2 Jan 2012 21:29:23 +0100
> From: David Ne??as 
> Subject: Re: troubles porting from ubuntu to debian. [??]
> To: Gary Kline 
> Cc: GTK Devel List 
> 
> On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote:
> > main.c:157: warning: implicit declaration of function ‘chdir’
> > main.c:362: warning: implicit declaration of function ‘sleep’
> 
> Declared in unistd.h.  Forgot to include it?


probably; anyway, i'm not concerned about those two.

> 
> > main.c: In function ‘inc_button_click_cb’:
> > main.c:242: warning: implicit declaration of function
> > ‘gtk_widget_is_sensitive’
> > ...
> > Here is the code that has gtk_widget_is_sensitive().  i gave up on
> > this after a couple hours [last night].
> 
> gtk_widget_is_sensitive() appeared in Gtk+ 2.18.
> 
> Use devhelp or look at the on-line reference documentation to see when a
> specific symbol appeared.
> 
> Use gtkdoc-depscan to scan your source code for functions that are
> available only since a specific Gtk+ version.
> 
> Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+.


could you please explain more about this macro and how to
resolve the complaint?

as you note, things do only now frown using the macro def:


main.c:243: warning: implicit declaration of function
‘GTK_WIDGET_SET_SENSITIVE’
main.c: In function ‘dec_button_click_cb’:

how the heck to i fix that warning that GTK_WIDGET_IS_SENSITIVE() IS 
*implicit*?

this program works on ubuntu 11.10 which is a direct fork of
debian.  i  was certain it would work on my laptop whivh has the
latest debian.
 

 [BTZZZT!] :-)

gary
> 
> Yeti
> 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

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


Re: troubles porting from ubuntu to debian. [??]

2012-01-02 Thread David Nečas
On Mon, Jan 02, 2012 at 12:15:45PM -0800, Gary Kline wrote:
> main.c:157: warning: implicit declaration of function ‘chdir’
> main.c:362: warning: implicit declaration of function ‘sleep’

Declared in unistd.h.  Forgot to include it?

> main.c: In function ‘inc_button_click_cb’:
> main.c:242: warning: implicit declaration of function
> ‘gtk_widget_is_sensitive’
> ...
> Here is the code that has gtk_widget_is_sensitive().  i gave up on
> this after a couple hours [last night].

gtk_widget_is_sensitive() appeared in Gtk+ 2.18.

Use devhelp or look at the on-line reference documentation to see when a
specific symbol appeared.

Use gtkdoc-depscan to scan your source code for functions that are
available only since a specific Gtk+ version.

Use GTK_WIDGET_IS_SENSITIVE() for compatibility with older Gtk+.

Yeti

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

troubles porting from ubuntu to debian. [??]

2012-01-02 Thread Gary Kline

o can't figure this out.  On my debian computer, make fails thusly:



 4 -rw-r--r-- 1 kline   354 2012-01-01 13:59 Makefile
pts/2 12:13  [441] k
~/bin
gcc -std=gnu99 -Wall -g main.c -o main -D_REENTRANT
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/pixman-1   -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   
main.c: In function ‘show_file_in_new_window’:
main.c:157: warning: implicit declaration of function ‘chdir’
main.c: In function ‘inc_button_click_cb’:
main.c:242: warning: implicit declaration of function
‘gtk_widget_is_sensitive’
main.c: In function ‘voice_editor’:
main.c:361: warning: statement with no effect
main.c:362: warning: implicit declaration of function ‘sleep’
main.c: In function ‘main’:
main.c:416: warning: unused variable ‘Size’
main.c:415: warning: unused variable ‘message’
/tmp/ccLCHs8U.o: In function `inc_button_click_cb':
/home/kline/bin/main.c:242: undefined reference to
`gtk_widget_is_sensitive'
/tmp/ccLCHs8U.o: In function `dec_button_click_cb':
/home/kline/bin/main.c:277: undefined reference to
`gtk_widget_is_sensitive'
collect2: ld returned 1 exit status
make: *** [all] Error 1
pts/2 12:13  [442]  

Here is the code that has gtk_widget_is_sensitive().  i gave up on
this after a couple hours [last night].  does anybody who why this
won't build?


Change senstivity of the decrement button based on counter
*/
   if (counter > 0 && !gtk_widget_is_sensitive (dec_button))
  gtk_widget_set_sensitive (dec_button, TRUE);
   /*


thanks in advance!

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

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