More stuff for gtk refcounting stuff.
--sg
This commit is contained in:
@ -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);
|
||||
gimp_dir = gimp_directory ();
|
||||
if ('\000' != gimp_dir[0])
|
||||
{
|
||||
sprintf (filename, "%s/menurc", gimp_dir);
|
||||
|
||||
fp = fopen (filename, "w");
|
||||
if (!fp)
|
||||
return;
|
||||
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
|
||||
fclose (fp);
|
||||
fp = fopen (filename, "w");
|
||||
if (fp)
|
||||
{
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
fclose (fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!initialize)
|
||||
{
|
||||
gtk_menu_factory_destroy (factory);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
31
app/menus.c
31
app/menus.c
@ -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);
|
||||
gimp_dir = gimp_directory ();
|
||||
if ('\000' != gimp_dir[0])
|
||||
{
|
||||
sprintf (filename, "%s/menurc", gimp_dir);
|
||||
|
||||
fp = fopen (filename, "w");
|
||||
if (!fp)
|
||||
return;
|
||||
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
|
||||
fclose (fp);
|
||||
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);
|
||||
gimp_dir = gimp_directory ();
|
||||
if ('\000' != gimp_dir[0])
|
||||
{
|
||||
sprintf (filename, "%s/menurc", gimp_dir);
|
||||
|
||||
fp = fopen (filename, "w");
|
||||
if (!fp)
|
||||
return;
|
||||
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
|
||||
fclose (fp);
|
||||
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);
|
||||
gimp_dir = gimp_directory ();
|
||||
if ('\000' != gimp_dir[0])
|
||||
{
|
||||
sprintf (filename, "%s/menurc", gimp_dir);
|
||||
|
||||
fp = fopen (filename, "w");
|
||||
if (!fp)
|
||||
return;
|
||||
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
|
||||
fclose (fp);
|
||||
fp = fopen (filename, "w");
|
||||
if (fp)
|
||||
{
|
||||
g_hash_table_foreach (entry_ht, menus_foreach, fp);
|
||||
fclose (fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!initialize)
|
||||
{
|
||||
gtk_menu_factory_destroy (factory);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user