Commit 32a8be45 authored by scott's avatar scott
Browse files

More stuff for gtk refcounting stuff.

--sg
parent fd75df2a
......@@ -360,22 +360,27 @@ menus_quit ()
char filename[512];
char *gimp_dir;
if (!entry_ht)
return;
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
if (entry_ht)
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (!fp)
return;
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (fp)
{
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
}
}
}
if (!initialize)
{
gtk_menu_factory_destroy (factory);
}
}
......
......@@ -360,22 +360,27 @@ menus_quit ()
char filename[512];
char *gimp_dir;
if (!entry_ht)
return;
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
if (entry_ht)
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (!fp)
return;
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (fp)
{
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
}
}
}
if (!initialize)
{
gtk_menu_factory_destroy (factory);
}
}
......
......@@ -360,22 +360,27 @@ menus_quit ()
char filename[512];
char *gimp_dir;
if (!entry_ht)
return;
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
if (entry_ht)
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (!fp)
return;
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (fp)
{
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
}
}
}
if (!initialize)
{
gtk_menu_factory_destroy (factory);
}
}
......
......@@ -360,22 +360,27 @@ menus_quit ()
char filename[512];
char *gimp_dir;
if (!entry_ht)
return;
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
if (entry_ht)
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (!fp)
return;
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
gimp_dir = gimp_directory ();
if ('\000' != gimp_dir[0])
{
sprintf (filename, "%s/menurc", gimp_dir);
fp = fopen (filename, "w");
if (fp)
{
g_hash_table_foreach (entry_ht, menus_foreach, fp);
fclose (fp);
}
}
}
if (!initialize)
{
gtk_menu_factory_destroy (factory);
}
}
......
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