Commit b738a176 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

cleanup function to clean up the gnome-config hack to spitting out the

Sat Apr 04 00:29:11 1998  George Lebl  <jirka@5z.com>

        * mico-glue.cc: cleanup function to clean up the
          gnome-config hack to spitting out the iior.

        * panel.c: call the cleanup and call has_section
          before clean_section
parent 8005af5a
Sat Apr 04 00:29:11 1998 George Lebl <jirka@5z.com>
* mico-glue.cc: cleanup function to clean up the
gnome-config hack to spitting out the iior.
* panel.c: call the cleanup and call has_section
before clean_section
Fri Apr 3 22:43:35 1998 Tom Tromey <tromey@cygnus.com>
* Makefile.am (logout_applet_LINK): New macro.
......@@ -115,7 +123,7 @@ Wed Mar 18 23:10:27 1998 George Lebl <jirka@5z.com>
then tell it to reread launchers
* launcher.c: does not contact the panel, but waits until the
teh panel contacts it
the panel contacts it
Wed Mar 18 18:13:35 1998 George Lebl <jirka@5z.com>
......@@ -248,7 +256,7 @@ Thu Mar 12 02:01:30 1998 George Lebl <jirka@5z.com>
menu is built on the applet side and code is there to do a
unified applet menu stuff on the panel side, but I'd have to
find a sane way of sending the button press event so that the
menu would work, probably some hacking on teh grabs could make
menu would work, probably some hacking on the grabs could make
it work (release grab on the applet side, add grab on the panel
side...)
......
Sat Apr 04 00:29:11 1998 George Lebl <jirka@5z.com>
* mico-glue.cc: cleanup function to clean up the
gnome-config hack to spitting out the iior.
* panel.c: call the cleanup and call has_section
before clean_section
Fri Apr 3 22:43:35 1998 Tom Tromey <tromey@cygnus.com>
* Makefile.am (logout_applet_LINK): New macro.
......@@ -115,7 +123,7 @@ Wed Mar 18 23:10:27 1998 George Lebl <jirka@5z.com>
then tell it to reread launchers
* launcher.c: does not contact the panel, but waits until the
teh panel contacts it
the panel contacts it
Wed Mar 18 18:13:35 1998 George Lebl <jirka@5z.com>
......@@ -248,7 +256,7 @@ Thu Mar 12 02:01:30 1998 George Lebl <jirka@5z.com>
menu is built on the applet side and code is there to do a
unified applet menu stuff on the panel side, but I'd have to
find a sane way of sending the button press event so that the
menu would work, probably some hacking on teh grabs could make
menu would work, probably some hacking on the grabs could make
it work (release grab on the applet side, add grab on the panel
side...)
......
......@@ -119,6 +119,27 @@ panel_corba_gtk_main (char *service_name)
boa_ptr->impl_is_ready (CORBA::ImplementationDef::_nil());
}
void
panel_corba_clean_up(void)
{
char hostname [4096];
char *name;
gethostname (hostname, sizeof (hostname));
if (hostname [0] == 0)
strcpy (hostname, "unknown-host");
name = g_copy_strings ("/CORBA-servers/Panel-", hostname, NULL);
puts("cleaning...");
puts(name);
if(gnome_config_has_section(name))
gnome_config_clean_section(name);
gnome_config_sync ();
g_free (name);
}
int
panel_corba_call_launcher(const char *path)
{
......
......@@ -7,6 +7,8 @@ BEGIN_GNOME_DECLS
void panel_corba_gtk_main (char *service_name);
void panel_corba_clean_up(void);
int panel_corba_call_launcher(const char *path);
int panel_corba_restart_launchers(void);
......
......@@ -265,17 +265,20 @@ panel_session_save (GnomeClient *client,
for(num=gnome_config_get_int("/panel/Config/applet_count=0");
num>0;num--) {
sprintf(buf,"/panel/Applet_%d",num);
gnome_config_clean_section(buf);
if(gnome_config_has_section(buf))
gnome_config_clean_section(buf);
}
for(num=gnome_config_get_int("/panel/Config/drawer_count=0");
num>0;num--) {
sprintf(buf,"/panel/Drawer_%d",num);
gnome_config_clean_section(buf);
if(gnome_config_has_section(buf))
gnome_config_clean_section(buf);
}
for(num=gnome_config_get_int("/panel/Config/panel_count=0");
num>0;num--) {
sprintf(buf,"/panel/Panel_%d",num);
gnome_config_clean_section(buf);
if(gnome_config_has_section(buf))
gnome_config_clean_section(buf);
}
num = 1;
......@@ -328,7 +331,8 @@ panel_session_save (GnomeClient *client,
gtk_widget_unref(root_menu);
/*puts("done");*/
/*FIXME: unref all menus here */
/*clean up corba stuff*/
panel_corba_clean_up();
}
/*puts("AFTER_SESSION_SAVE");*/
......
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