Package: ia32-libs-gtk
Version: 2.5
Severity: important

I have attatched a test app which allows easilly launching the file chooser, to build it use

gcc `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -m32 dialogtest.c -o dialogtest

When I build it without -m32 the dialog displays fine with the correct icons. When I build it with -m32 the dialog displays with every icon being an identical "error icon" and a load of warnings about being unable to load stuff because it is the wrong elf class are dumped to the console.

-- System Information:
Debian Release: lenny/sid
 APT prefers testing
 APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ia32-libs-gtk depends on:
ii ia32-libs 2.5 ia32 shared libraries for use on a

ia32-libs-gtk recommends no packages.

#include <gtk/gtk.h>

GtkWidget *dialog;

int main ( int   argc,
          char *argv[] ) {
  gtk_init(&argc,&argv);          
  dialog = gtk_file_chooser_dialog_new ("Open File",  NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,NULL);
		    		    		    		    		      
  if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
    char *filename;
    filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
    //open_file (filename);
    printf("%s\n",filename);
    g_free (filename);
  }
  gtk_widget_destroy (dialog);
}		    		    		    		    		                                

Reply via email to