r1901 - trunk/src/target/OM-2007/applications/openmoko-footer/src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Thu May 3 18:31:10 CEST 2007


Author: thomas
Date: 2007-05-03 18:31:09 +0200 (Thu, 03 May 2007)
New Revision: 1901

Modified:
   trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c
Log:
openmoko-footer: Don't override the style. Remove unused variables.


Modified: trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c	2007-05-03 10:36:30 UTC (rev 1900)
+++ trunk/src/target/OM-2007/applications/openmoko-footer/src/main.c	2007-05-03 16:31:09 UTC (rev 1901)
@@ -37,11 +37,6 @@
 main( int argc, char **argv )
 {
   MokoFooterApp *app;
-  GError* err = NULL;
-  GdkPixbuf *pixbuf;
-  GtkStyle *style;
-  GdkPixmap *pixmap;
-  GdkBitmap *bitmap;
   GdkWindow *root_window;
 
   app = g_new0 (MokoFooterApp, 1);
@@ -61,12 +56,6 @@
   gtk_widget_set_uposition (GTK_WIDGET (app->toplevel_window), FOOTER_PROPERTY_X, FOOTER_PROPERTY_Y);
   gtk_widget_show (app->toplevel_window);
 
-  pixbuf = gdk_pixbuf_new_from_file (PKGDATADIR "/bg_footer.png", &err);
-  gdk_pixbuf_render_pixmap_and_mask(pixbuf, &pixmap, &bitmap, NULL);
-  style = gtk_rc_get_style(app->toplevel_window);
-  style->bg_pixmap[app->toplevel_window->state] = pixmap;
-  gtk_style_set_background(style, app->toplevel_window->window, app->toplevel_window->state);
-
   app->footer = footer_new (); 
   gtk_widget_show_all (GTK_WIDGET (app->footer));
 
@@ -77,13 +66,6 @@
 
   gtk_main ();
 
-  if (pixbuf)
-      g_free (pixbuf);
-  if (pixmap)
-      g_free (pixmap);
-  if (bitmap)
-      g_free (bitmap);
-
   g_free (app);
 
   return 0;





More information about the commitlog mailing list