Commit ba2c2a8e authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

init unitialized variable, spotted by David Binderman.

2005-07-13  Paolo Borelli  <pborelli@katamail.com>

	* gedit-prefs-manager.c: init unitialized variable, spotted
	by David Binderman.

	* gedit-metadata-manager.c: backport Paolo Maggi's fix from
	new_mdi so that the timeout callback is not stopped.
parent 743801f0
2005-07-13 Paolo Borelli <pborelli@katamail.com>
* gedit-prefs-manager.c: init unitialized variable, spotted
by David Binderman.
* gedit-metadata-manager.c: backport Paolo Maggi's fix from
new_mdi so that the timeout callback is not stopped.
2005-06-08 Ray Strode <rstrode@redhat.com>
* gedit-file-selector-util.c: (replace_dialog):
......
......@@ -70,7 +70,7 @@ struct _GeditMetadataManager
GHashTable *items;
};
static void gedit_metadata_manager_save (gpointer data);
static gboolean gedit_metadata_manager_save (gpointer data);
static GeditMetadataManager *gedit_metadata_manager = NULL;
......@@ -465,7 +465,7 @@ resize_items ()
}
}
static void
static gboolean
gedit_metadata_manager_save (gpointer data)
{
xmlDocPtr doc;
......@@ -475,7 +475,7 @@ gedit_metadata_manager_save (gpointer data)
gedit_debug (DEBUG_METADATA, "");
if (!gedit_metadata_manager->modified)
return;
return TRUE;
resize_items ();
......@@ -483,7 +483,7 @@ gedit_metadata_manager_save (gpointer data)
doc = xmlNewDoc ("1.0");
if (doc == NULL)
return;
return TRUE;
/* Create metadata root */
root = xmlNewDocNode (doc, NULL, "metadata", NULL);
......@@ -502,5 +502,7 @@ gedit_metadata_manager_save (gpointer data)
gedit_metadata_manager->modified = FALSE;
gedit_debug (DEBUG_METADATA, "DONE");
return TRUE;
}
......@@ -314,8 +314,8 @@ gconf_client_get_color_with_default (GConfClient* client, const gchar* key,
const gchar* def, GError** err)
{
gchar *str_color = NULL;
GdkColor color;
GdkColor color = {0, };
gedit_debug (DEBUG_PREFS, "");
g_return_val_if_fail (client != NULL, color);
......@@ -364,7 +364,7 @@ gconf_client_set_color (GConfClient* client, const gchar* key,
static GdkColor
gedit_prefs_manager_get_color (const gchar* key, const gchar* def)
{
GdkColor color;
GdkColor color = {0, };
gedit_debug (DEBUG_PREFS, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment