[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Processed: Re: Bug#338191: d-i gtk installer on PowerPC, wrong colors displayed



Sven Luther wrote:
On Wed, Nov 09, 2005 at 12:32:56AM +0100, Attilio Fiandrotti wrote:

Debian Bug Tracking System wrote:

Processing commands for control@bugs.debian.org:



reassign 338191 cdebconf-gtk

Bug#338191: d-i gtk installer on PowerPC, wrong colors displayed
Warning: Unknown package 'cdebconf-gtk'
Bug reassigned from package `install' to `cdebconf-gtk'.


Shouldn't this bug be assigned to the libgtk+2.0-directfb0-udeb or libdirectfb-0.9-22-udeb since it's not a really a bug in the frontend ?
In fact the frontend works fine on i386, only on PPC shows up such a bug...


Do we have tested it on other big endian arches ?

i know DFB & PPC endianess issues were being examinated lately at
directfb-dev.
To determitate if this problem is gtk-dfb related or not you could try
to compile the attached gimage.c gtk app on your ppc and running it from
inside the miniiso (you can use wget or scp to import the compiled
gimage app)

attilio

/*

export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
gcc gimage.c -o gimage `pkg-config --cflags --libs gtk+-directfb-2.0`

*/

#include <gtk/gtkimage.h>
#include <gtk/gtk.h>

#include <sys/types.h>
#include <sys/wait.h>

#include <syslog.h>



static gboolean delete_event( GtkWidget *widget,
                              GdkEvent  *event,
                              gpointer   data )
{
    g_print ("delete event occurred\n");
    return TRUE;
}



static void destroy( GtkWidget *widget,
                     gpointer   data )
{
    gtk_main_quit ();
}



int main( int   argc, char *argv[] )
{

    GtkWidget *window, *button=NULL, *image, *box;
    GdkPixbuf *pixbufimage;

    gtk_init (&argc, &argv);

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
    gtk_widget_set_size_request (window, 800, 600);

    g_signal_connect (G_OBJECT (window), "delete_event",
		      G_CALLBACK (delete_event), NULL);
    g_signal_connect (G_OBJECT (window), "destroy",
		      G_CALLBACK (destroy), NULL);




	button = gtk_button_new_with_label("Click me to quit");

	image = g_object_new (GTK_TYPE_IMAGE, NULL);

	g_return_if_fail (GTK_IS_IMAGE (image));

	g_object_freeze_notify (G_OBJECT (image));


	pixbufimage =
gdk_pixbuf_new_from_file("/usr/share/graphics/logo_debian.png", NULL);


	gtk_image_set_from_pixbuf (GTK_IMAGE(image), pixbufimage);


	g_object_unref (G_OBJECT (pixbufimage) );

	g_object_thaw_notify (G_OBJECT (image));


    g_signal_connect_swapped (G_OBJECT (button), "clicked",
			      G_CALLBACK (gtk_widget_destroy),
                              G_OBJECT (window));
	
    box = gtk_vbox_new (FALSE, 5);
    gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET (image), FALSE, FALSE, 5);
    gtk_box_pack_start(GTK_BOX(box), button, FALSE, FALSE, 5);

    gtk_container_add(GTK_CONTAINER(window), box);

    gtk_widget_show_all (window);

    gtk_main ();

    return 0;
}



Reply to: