gnome-control-center/capplets/theme-switcher/main.c
Bradford Hovinen 99aa241dba Updated French translations Chnaged #include "config.h" to #ifdef
2000-09-10  Bradford Hovinen  <hovinen@helixcode.com>

        * po/fr.po: Updated French translations
        * all: Chnaged #include "config.h" to #ifdef HAVE_CONFIG_H ...
        * *.desktop, *.directory: Updated French translations
        * po/POTFILES.in: Added screensaver XML files

        Courtesy of Christophe Merlet <c.merlet@agglo-pau.fr>
2000-09-10 12:57:17 +00:00

41 lines
735 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 ("theme-switcher-capplet",
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();
/* Pause here until our child exits and the socket can be safely
* destroyed
*/
if (child_pid > 0)
waitpid(child_pid, NULL, 0);
return 0;
}