=== modified file 'libawn/awn-applet-dialog.c' --- libawn/awn-applet-dialog.c 2007-08-26 12:25:11 +0000 +++ libawn/awn-applet-dialog.c 2007-09-07 18:36:19 +0000 @@ -27,6 +27,7 @@ #include #include #include +#include #include "awn-applet.h" #include "awn-applet-gconf.h" @@ -285,6 +286,7 @@ awn_applet_dialog_init (AwnAppletDialog *dialog) { AwnAppletDialogPrivate *priv; + GConfClient *client; priv = dialog->priv = AWN_APPLET_DIALOG_GET_PRIVATE (dialog); @@ -325,9 +327,11 @@ GTK_CONTAINER_CLASS (awn_applet_dialog_parent_class)->add (GTK_CONTAINER (dialog), priv->align); - priv->offset = gconf_client_get_int (gconf_client_get_default (), - "/apps/avant-window-navigator/bar/icon_offset", - NULL); + client = gconf_client_get_default (); + priv->offset = gconf_client_get_int (client, + "/apps/avant-window-navigator/bar/icon_offset", + NULL); + g_object_unref (client); } /* === modified file 'libawn/awn-applet.c' --- libawn/awn-applet.c 2007-07-30 23:21:37 +0000 +++ libawn/awn-applet.c 2007-09-07 18:10:37 +0000 @@ -464,10 +464,10 @@ G_OBJECT_CLASS(parent_class)->finalize(obj); } -GtkWidget * +AwnApplet * awn_applet_new( const gchar* uid, gint orient, gint height ) { - GtkWidget *applet = g_object_new(AWN_TYPE_APPLET, + AwnApplet *applet = g_object_new(AWN_TYPE_APPLET, "above-child", FALSE, "visible-window", TRUE, NULL); === modified file 'libawn/awn-applet.h' --- libawn/awn-applet.h 2007-07-30 23:21:37 +0000 +++ libawn/awn-applet.h 2007-09-07 18:11:05 +0000 @@ -80,7 +80,7 @@ typedef AwnApplet* (*AwnAppletInitPFunc) ( const gchar* uid, gint orient, gint height ); -GtkWidget * +AwnApplet * awn_applet_new ( const gchar* uid, gint orient, gint height ); AwnOrientation === modified file 'libawn/awn-cairo-utils.c' --- libawn/awn-cairo-utils.c 2007-08-18 19:11:10 +0000 +++ libawn/awn-cairo-utils.c 2007-09-07 18:40:06 +0000 @@ -82,9 +82,9 @@ } static void -hex2float(char* HexColor, float* FloatColor) +hex2float (const char *HexColor, float *FloatColor) { - char* HexColorPtr = HexColor; + const char *HexColorPtr = HexColor; int i = 0; for (i = 0; i < 4; i++) === modified file 'libawn/awn-plug.c' --- libawn/awn-plug.c 2007-09-01 21:25:43 +0000 +++ libawn/awn-plug.c 2007-09-07 18:27:20 +0000 @@ -143,11 +143,13 @@ on_delete_notify (NULL, plug); } +/* static void on_applet_deleted (AwnApplet *applet, gchar *uid, AwnPlug *plug) { ; } +*/ /* GOBJECT STUFF */ === modified file 'src/awn-bar.c' --- src/awn-bar.c 2007-09-04 15:19:59 +0000 +++ src/awn-bar.c 2007-09-07 18:20:50 +0000 @@ -166,10 +166,12 @@ y-=3; } - double x0 = x, - y0 = y, - x1 = x+width, - y1 = y+height; + double x0, y0, x1, y1; + + x0 = x; + y0 = y; + x1 = x + width; + y1 = y + height; cairo_move_to (cr, x0 + apply_perspective_x(width, height/2, 0) , y0 + apply_perspective_y( height ) + top_offset); cairo_line_to (cr, x0 + apply_perspective_x(width, height/2, width), y0 + apply_perspective_y( height ) + top_offset); === modified file 'src/awn-gconf.c' --- src/awn-gconf.c 2007-09-06 09:27:33 +0000 +++ src/awn-gconf.c 2007-09-07 18:24:06 +0000 @@ -90,8 +90,6 @@ static void hex2float(char* HexColor, float* FloatColor); -static void load_monitor (AwnSettings *settings); - AwnSettings* awn_gconf_new() { @@ -376,13 +374,3 @@ } } - -static void -screen_size_changed (GdkScreen *screen, AwnSettings *s) -{ - g_print ("Screen size changed\n"); - gdk_screen_get_monitor_geometry(screen, - gdk_screen_get_monitor_at_window(screen,GTK_WIDGET(s->window)->window), - &s->monitor); -} - === modified file 'src/awn-task.c' --- src/awn-task.c 2007-09-05 17:22:00 +0000 +++ src/awn-task.c 2007-09-07 18:18:53 +0000 @@ -1419,7 +1419,7 @@ { AwnTaskPrivate *priv; priv = AWN_TASK_GET_PRIVATE (task); - awn_title_hide (AWN_TITLE (priv->title), task); + awn_title_hide (AWN_TITLE(priv->title), GTK_WIDGET(task)); priv->name_changed = FALSE; return FALSE; } === modified file 'src/main.c' --- src/main.c 2007-09-06 19:54:01 +0000 +++ src/main.c 2007-09-07 18:25:19 +0000 @@ -440,7 +440,9 @@ gtk_window_get_size(GTK_WINDOW(settings->window), &ww, &wh); gtk_widget_set_size_request (settings->window, -1, (settings->bar_height)*2+settings->icon_offset); - gtk_window_move(settings->window, (settings->monitor.width - ww) / 2, settings->monitor.height-((settings->bar_height)*2+settings->icon_offset)); + gtk_window_move(GTK_WINDOW(settings->window), + (settings->monitor.width - ww) / 2, + settings->monitor.height-((settings->bar_height)*2+settings->icon_offset)); gtk_window_resize(GTK_WINDOW(settings->bar), settings->monitor.width,