diff options
author | Perberos <[email protected]> | 2012-01-23 11:45:30 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2012-01-23 11:45:30 -0300 |
commit | 6458798c9ee00bcbb62e40c73075d831544f2839 (patch) | |
tree | 6a63f51fc6b040b6686a04bdbff950d0da564174 /stickynotes | |
parent | e0535a809a7ab79a7dd6287718564ccbe6ed8163 (diff) | |
download | mate-applets-6458798c9ee00bcbb62e40c73075d831544f2839.tar.bz2 mate-applets-6458798c9ee00bcbb62e40c73075d831544f2839.tar.xz |
missing NULL on g_build_filename function
Diffstat (limited to 'stickynotes')
-rw-r--r-- | stickynotes/stickynotes.c | 6 | ||||
-rw-r--r-- | stickynotes/stickynotes_applet.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 880a1933..fc273943 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -840,13 +840,13 @@ stickynotes_save_now (void) } /* The XML file is $HOME/.config/mate/stickynotes_applet, most probably */ - //{ + { gchar* file = g_build_filename(g_get_home_dir(), ".config", "mate", "stickynotes-applet.xml", NULL); xmlSaveFormatFile(file, doc, 1); g_free(file); - //} + } xmlFreeDoc(doc); @@ -884,7 +884,7 @@ stickynotes_load (GdkScreen *screen) if (g_file_test(file, G_FILE_TEST_EXISTS)) { /* load file */ - doc = xmlParseFile(file); + doc = xmlParseFile(file); } else { diff --git a/stickynotes/stickynotes_applet.h b/stickynotes/stickynotes_applet.h index 6939ca0c..5a351502 100644 --- a/stickynotes/stickynotes_applet.h +++ b/stickynotes/stickynotes_applet.h @@ -41,7 +41,7 @@ /* Global Sticky Notes instance */ typedef struct { - GtkBuilder *builder; + GtkBuilder *builder; GtkWidget *w_prefs; /* The prefs dialog */ GtkAdjustment *w_prefs_width; @@ -57,7 +57,7 @@ typedef struct GList *notes; /* Linked-List of all the sticky notes */ GList *applets; /* Linked-List of all the applets */ - + GdkPixbuf *icon_normal; /* Normal applet icon */ GdkPixbuf *icon_prelight; /* Prelighted applet icon */ @@ -84,7 +84,7 @@ typedef struct GtkWidget *w_image; /* The applet icon */ GtkWidget *destroy_all_dialog; /* The applet it's destroy all dialog */ - + gboolean prelighted; /* Whether applet is prelighted */ gboolean pressed; /* Whether applet is pressed */ @@ -94,7 +94,7 @@ typedef struct GtkActionGroup *action_group; GtkWidget *menu_tip; } StickyNotesApplet; - + typedef enum { STICKYNOTES_NEW = 0, |