undefined symbol: __guard.

2005-09-20 Thread Maran
Hi Group,
I am trying to run a gtk application in linux on PXA
270 (arm architecture) board. Then I got error message
saying that file not found libpango-1.0.so.600.0 at
runtime.
I have added
libpangoft2-1.0.so.600.0,libXft.so.5.0,libX11.so.8.1,
libfreetype.so.13.0,
libXrender.so.3.1,libfontconfig.so.2.0,
libgobject-2.0.so.400.8,libgmodule-2.0.so.400.8,libglib-2.0.so.400.8
,libintl.so.2.0 and libiconv.so.4.0 libraries in
different stages.
After adding all those libraries, the error has been
changed to /lib/libiconv.so.4.0: undefined symbol:
__guard.
It seems that the libiconv.so.4.0 is needed to be
compiled with some more compiler option.
Could you please help me in resolving this error?

Regards,
Maran

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK Forum

2005-09-20 Thread Mystilleef
On 9/20/05, Micah Carrick <[EMAIL PROTECTED]> wrote:
> I realize many of you may find the mailing list to be sufficient,
> however, I've thrown up a forum at http://gtkforum.micahcarrick.com
> anyway.  I've been contemplating it for a few months and, other than
> this list, I have not found any discussion resources exclusive to GTK+
> programming (or the ones I did were dead links).
> 
> I've been learing GTK for several months and have found it more
> difficult thatn some of the other languages I've learned, not because
> the information isn't out there, but that there's not a lot of "holding
> your hand" going on.  So hopefully I can get this going so that it's a
> good place for those of us who struggle and could use a little "hand
> holding" when reading through source code and API documentation.
> 
> Perhaps nobody cares.  Who knows.  I'll give it a shot. :)
> 
> Take care,
> Micah

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


Re: GTK Forum

2005-09-20 Thread Micah Carrick

http://gtkforums.micahcarrick.com
or...
http://www.micahcarrick.com/gtkforums/

Andrew Krause wrote:


I really like this idea, but the link doesn't work...

---
Andrew Krause
[EMAIL PROTECTED]
www.openldev.org 






.

 



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


re: GTK Forum

2005-09-20 Thread Andrew Krause
I really like this idea, but the link doesn't work...

---
Andrew Krause
[EMAIL PROTECTED]
www.openldev.org



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


Oh yeah and...

2005-09-20 Thread Micah Carrick
one more thing about gtkforums.micahcarrick.com ... if anybody knows 
some tutorials that they have found and liked and would like to post it 
that'd be cool.  They seem scattered all over the internet.  I've found 
a few that I liked quite a bit and will post them soon.


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


GTK Forum

2005-09-20 Thread Micah Carrick
I realize many of you may find the mailing list to be sufficient, 
however, I've thrown up a forum at http://gtkforum.micahcarrick.com 
anyway.  I've been contemplating it for a few months and, other than 
this list, I have not found any discussion resources exclusive to GTK+ 
programming (or the ones I did were dead links).


I've been learing GTK for several months and have found it more 
difficult thatn some of the other languages I've learned, not because 
the information isn't out there, but that there's not a lot of "holding 
your hand" going on.  So hopefully I can get this going so that it's a 
good place for those of us who struggle and could use a little "hand 
holding" when reading through source code and API documentation.


Perhaps nobody cares.  Who knows.  I'll give it a shot. :)

Take care,
Micah
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Gimp menus are black. gdk_window_set_back_pixmap(): pixmap must have a colormap

2005-09-20 Thread Naomi Tsafnat
When I run Gimp the menus have a black background and can't be read and 
the following error message appears:
(gimp:18128): Gdk-WARNING **: gdk_window_set_back_pixmap(): pixmap must 
have a colormap


I have gtk 2.8.3-7
gimp 2.2.8

Pentium 4 x86-64
SuSE Linux 9.3.

I see that this problem was encountered with gtk 2.8.0,
http://mail.gnome.org/pipermail/gtk-app-devel-list/2005-August/msg00206.html

I was wondering if the bug was supposed to have been fixed in 2.8.3 or 
do I need to wait for 2.8.4?


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


Re: ld.exe: cannot find -liconv

2005-09-20 Thread Tor Lillqvist
[EMAIL PROTECTED] writes:
 > OK, I downloaded the following dlls: iconv.dll intl.dll

DLLs only? OK, so those two packages don't really need anything except
the DLL at run-time, but still, if you really downloaded just the DLLs
(and not zipfiles containing other stuff, too), where did you get them
from?

 > libpango.dll

What is this, and where did you get it? The official build of the
pango DLL is called libpango-1.0-0.dll (and has been called so for
several years), and it won't work to just install the DLL, you must
install the whole Pango runtime package (zipfile). (Well, if you
insist, sure, you can leave out some stuff, but then you must know
what you are doing, and you are on your own.)

 > Now I get a message that reads: The procedure entry point
 > pango_context_get_matrix could not be located in the dynamic link
 > library libpango-1.0-0.dll

So is it libpango-1.0-0.dll after all now? Or did you rename that odd
libpango.dll to libpango-1.0-0.dll? (Bad move.) Or maybe you
downloaded the wrong Pango version to go with your GTK version.

 > The windows fonts are set to Ariel - 10, what else can I do?

Don't cut corners. Read the instructions on the download page
closely. Download the complete zipfiles, and the versions that go
together, don't go to fly-by-night "all the DLLs you need" sites to
look for just DLLs.

--tml

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


Re: ld.exe: cannot find -liconv

2005-09-20 Thread jalkadir
OK, I downloaded the following dlls:
iconv.dll
intl.dll
libpango.dll

Now I get a message that reads:
The procedure entry point pango_context_get_matrix coudl not be located in
the dynamic link library libpango-1.0-0.dll

The windows fonts are set to Ariel - 10, what else can I do?

Thanks
> [EMAIL PROTECTED] writes:
>  > Right now there is nothing else but the the OS and the libraries
>  > you have placed for download at:
>  > http://www.gimp.org/~tml/gimp/win32/downloads.html My first
>  > intention was to run /bin/gtk-demo.exe, but I get an error message
>  > saying "This application has failed to start because iconv.dll was
>  > not found. Re-installing the application may fix the proble."
>
>  > I checked for the existance of this file, but it does not exist in my
>  > system. Perhaps this is a file that was, for some reason, left out.
>
> iconv.dll is not part of Windows, you have to install it
> yourself. Download libiconv from the page you mentioned and install
> it, also. (It does say that GLib requires libiconv and
> gettext-runtime.)
>
> --tml
>
>



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


Re: A panel widget a la wxWidgets

2005-09-20 Thread Todd Fisher
GtkEventBox is similar in that you can pack other widgets into it and 
control it's background color.


-Todd

Hans Oesterholt wrote:


L.S.,

wxWidgets has a wxPanel widget, that acts somewhat like
a GtkBin, but for which it is possible to set e.g. the background
color.

Does Gtk have an equivalent?

best whishes,
Hans

___
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: ld.exe: cannot find -liconv

2005-09-20 Thread Tor Lillqvist
[EMAIL PROTECTED] writes:
 > Right now there is nothing else but the the OS and the libraries
 > you have placed for download at:
 > http://www.gimp.org/~tml/gimp/win32/downloads.html My first
 > intention was to run /bin/gtk-demo.exe, but I get an error message
 > saying "This application has failed to start because iconv.dll was
 > not found. Re-installing the application may fix the proble."

 > I checked for the existance of this file, but it does not exist in my
 > system. Perhaps this is a file that was, for some reason, left out.

iconv.dll is not part of Windows, you have to install it
yourself. Download libiconv from the page you mentioned and install
it, also. (It does say that GLib requires libiconv and
gettext-runtime.)

--tml

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


A panel widget a la wxWidgets

2005-09-20 Thread Hans Oesterholt

L.S.,

wxWidgets has a wxPanel widget, that acts somewhat like
a GtkBin, but for which it is possible to set e.g. the background
color.

Does Gtk have an equivalent?

best whishes,
Hans

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


Re: Image on button

2005-09-20 Thread Sven Neumann
Hi,

David Hoover <[EMAIL PROTECTED]> writes:

> GTK 2.6 added gtk_button_set_image() which certainly covers the most
> common simple cases of this.

Right. And more importantly, it respects the user setting to suppress
images on buttons.


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


Re: ld.exe: cannot find -liconv

2005-09-20 Thread jalkadir
Ok, in the hope to correct the problem, and expecting that viruses were
the primary reason of it, I have re-installed Windows-xp. Right now there
is nothing else but the the OS and the libraries you have placed for
download at: http://www.gimp.org/~tml/gimp/win32/downloads.html

My first intention was to run /bin/gtk-demo.exe, but I get an error
message saying "This application has failed to start because iconv.dll was
not found. Re-installing the application may fix the proble."

I checked for the existance of this file, but it does not exist in my
system. Perhaps this is a file that was, for some reason, left out.

If this is a bug, I am glad to be able to help.

On the other hand, where would you suggest I get this files from?
I know that I could do a search on the net, and I did, but I don't want to
compromise the process of getting GTK+ to work in my system.

Thanks in advance Tor, you have been very helpful and willing through out
my GTK+ odessi, for that I am very thankful to you

.
> [EMAIL PROTECTED] writes:
>  > I did as you suggested. I changed the font to Arial, but I still keep
>  > getting the same message.
>
> Argh.
>
>  > Do you have any other rabbit in your hat :) .
>
> Hmm, not really. I don't get these messages myself. Is your code
> trying to use some specific font iself? You are sure you don't have
> several installations of the Pango DLLs and use some old ones instead
> of the ones you think you should be using?
>
> --tml
>
>

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


Re: "motion-notify-event"

2005-09-20 Thread Luca Cappa
gtk_widget_add_events(window,GDK_POINTER_MOTION_MASK | 
GDK_POINTER_MOTION_HINT_MASK);



A few more questions on GtkEvent:

There are 2 ways I can get data of mouse position: event->button.x or 
event->motion.x. Out of these two, which one should be used to capture 
the location of the  mouse pointer relative to the window.


the .x/.y of the second one, if you meant it is a GdkEventMotion.


Some examples use the following piece of code too:
if(event->is_hint)
 gdk_window_get_pointer(window,&x.&y,&state);


You should either remove the GDK_POINTER_MOTION_HINT_MASK); flag above, 
or instead use the code above you shown just at the start of your 
motion_notify_event handler.


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


shape masked widgets on gtk 2.8.x

2005-09-20 Thread Calin Vatavu
Hello,

I've been trying for some time to develop a program that can move icons on a 
canvas, but if the icons are shape masked it looks very ugly. The masked area 
of the icon is messed up. See for yourself in the following code:

X---

#include 

GtkWidget *img_slot, *fixed_evbox;
GtkWidget *fixed;

int new_x, new_y, old_x, old_y, child_x = 150, child_y = 150, orig_x, orig_y, 
dx = 0, dy = 0;;
gboolean dragging=FALSE;

void set_shape_mask_from_file (GtkWidget *widget, gchar *file)
{
GdkPixbuf *pix;
GdkBitmap *shape_mask;
guchar *data;
pix = gdk_pixbuf_new_from_file (file, NULL);
data = g_new0(guchar, gdk_pixbuf_get_width (pix) * 
gdk_pixbuf_get_height (pix));
shape_mask = gdk_bitmap_create_from_data (widget->window, data, 
  gdk_pixbuf_get_width (pix), 
gdk_pixbuf_get_height (pix), 100);
gdk_pixbuf_render_threshold_alpha (pix, shape_mask, 0, 0, 0, 0, 
   gdk_pixbuf_get_width (pix), 
gdk_pixbuf_get_height (pix), 100);
gtk_widget_shape_combine_mask (widget, shape_mask, 0, 0);
}

gboolean img_event(GtkWidget *w,
   GdkEvent *ev,
   gpointer data)
{
if (ev->type == GDK_BUTTON_PRESS) {
if (ev->button.button == 1) {
old_x = ev->button.x_root;
old_y = ev->button.y_root;
orig_x = ev->button.x;
orig_y = ev->button.y;
dx = dy = 0;
gtk_grab_add(img_slot);
dragging = TRUE;
return TRUE;
}
}
else if (ev->type == GDK_MOTION_NOTIFY) {
if (ev->motion.state & GDK_BUTTON1_MASK) {  
if (dragging) {
new_x = ev->motion.x_root;
new_y = ev->motion.y_root;  
dx += new_x-old_x;
dy += new_y-old_y;
child_x = orig_x+dx;
child_y = orig_y+dy;
gtk_fixed_move (GTK_FIXED(fixed), img_slot, 
child_x, child_y);
old_x = new_x;
old_y = new_y;
gdk_window_invalidate_rect 
(fixed_evbox->window, NULL, FALSE);
gdk_window_invalidate_rect (fixed->window, 
NULL, FALSE);
return TRUE;
}
}
}
else if (ev->type == GDK_EXPOSE) {
GtkStyle *style = w->style;
gdk_draw_rectangle (w->window, style->white_gc, TRUE, 0, 0, 
w->allocation.width, w->allocation.height);
gdk_draw_line (w->window, style->black_gc, 0, 0, 
child_x+img_slot->allocation.width/2, 
child_y+img_slot->allocation.height/2);
return TRUE;
} 
else if (ev->type == GDK_BUTTON_RELEASE) {
gtk_grab_remove(gtk_grab_get_current ());
dragging = FALSE;
return TRUE;
}


return FALSE;

}

int main( int   argc,
  char *argv[] )
{
/* GtkWidget is the storage type for widgets */
GtkWidget *window;
gint i;

/* Initialise GTK */
gtk_init (&argc, &argv);

/* Create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Fixed Container");

/* Here we connect the "destroy" event to a signal handler */ 
g_signal_connect (G_OBJECT (window), "destroy",
  G_CALLBACK (gtk_main_quit), NULL);

/* Sets the border width of the window. */
gtk_container_set_border_width (GTK_CONTAINER (window), 10);

/* Create a Fixed Container */
fixed = gtk_fixed_new ();
fixed_evbox = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (fixed_evbox), fixed);
gtk_container_add (GTK_CONTAINER (window), fixed_evbox);
gtk_widget_show (fixed);

img_slot = gtk_event_box_new ();
{
GtkWidget *img = gtk_image_new_from_file ("circle.png");
gtk_widget_show(img);
gtk_container_add (GTK_CONTAINER (img_slot), img); 
}
set_shape_mask_from_file (img_slot, "circle.png");

gtk_widget_add_events (fixed_evbox, 
   GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 
| GDK_BUTTON_MOTION_MASK);
g_signal_connect(G_OBJECT(fixed_evbox), "event", G_CALLBACK(img_event), 
0);


/* This packs the event box into the fixed containers windo

"motion-notify-event"

2005-09-20 Thread Mohit Kumar
Hi All,

I am not able to capture the mouse motion event on my window. I have written the following piece of code:

#include 
#include 

static gboolean motion_event_callback(GtkWidget *widget,GdkEvent *event,gpointer data)
{
    printf("Motion Event called ");
    return FALSE;
}

int main(int argc, char* argv[])
{
    gtk_init(&argc,&argv);
    
    GtkWidget *window;
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_set_size_request(window,100,100);
    gtk_widget_add_events(window,GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK);
    g_signal_connect(G_OBJECT(window),"motion_notify_event",G_CALLBACK(motion_event_callback),NULL);

    gtk_widget_show_all(window);

    gtk_main();
    return 0;
}

However I am not getting any output. When I tried writing the output to
the file (assuming buffering optimization of printf), the output was
not what it should have been.
I am not able to understand what I am missing to capture the mouse motion event.

A few more questions on GtkEvent:

There are 2 ways I can get data of mouse position: event->button.x
or event->motion.x. Out of these two, which one should be used to
capture the location of the  mouse pointer relative to the window.

Some examples use the following piece of code too:
if(event->is_hint)
 gdk_window_get_pointer(window,&x.&y,&state);


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