gnome-control-center/capplets/theme-switcher/main.c
Richard Hestilow 0859c35e90 Started.
2001-07-19  Richard Hestilow  <hestilow@ximian.com>

	* Started.

	* main.c (main): Don't waitpid. I have no idea why it didn't work,
	but this is at least better than waiting forever.
2001-07-20 00:36:59 +00:00

44 lines
785 B
C

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "capplet-widget.h"
#include "da.h"
#define THEME_SWITCHER_VERSION "0.1"
int
main(int argc, char **argv)
{
GtkWidget *w;
gint child_pid;
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
textdomain (PACKAGE);
set_tmp_rc();
child_pid = do_demo(argc, argv);
switch (gnome_capplet_init ("gtk-theme-selector",
THEME_SWITCHER_VERSION, argc, argv, NULL, 0, NULL)) {
case -1:
exit (1);
case 1:
return 0;
}
w = make_main();
gtk_widget_show_all(w);
send_socket();
gtk_main();
/* This doesn't work any more -- why? */
#if 0
/* Pause here until our child exits and the socket can be safely
* destroyed
*/
if (child_pid > 0)
waitpid(child_pid, NULL, 0);
#endif
return 0;
}