Browse Source

Use glib helper function to set sigterm signal. Fixes #12

sisyphus
Dustin Falgout 9 years ago
parent
commit
dc236e25d2
  1. 5
      NEWS
  2. 2
      configure.ac
  3. 4
      src/lightdm-webkit2-greeter.c

5
NEWS

@ -1,3 +1,8 @@
Overview of changes in lightdm-webkit-greeter 0.2.2
* Call gtk_init() as early as possible to prevent widget drawing failures.
* Use glib helper function to set sigterm signal
Overview of changes in lightdm-webkit-greeter 0.2.1
* Handle tasks that a WM would normally handle.

2
configure.ac

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lightdm-webkit2-greeter, 0.2.1)
AC_INIT(lightdm-webkit2-greeter, 0.2.2)
AC_SUBST(THEME_DIR)
AC_CONFIG_HEADER(config.h)

4
src/lightdm-webkit2-greeter.c

@ -108,9 +108,9 @@ main(int argc, char **argv) {
gchar *theme;
GdkRGBA bg_color;
gtk_init(&argc, &argv);
g_unix_signal_add(SIGTERM, (GSourceFunc)sigterm_cb, /* is_callback */ GINT_TO_POINTER (TRUE));
signal(SIGTERM, sigterm_cb);
gtk_init(&argc, &argv);
WebKitWebContext *context = webkit_web_context_get_default();
g_signal_connect(context,

Loading…
Cancel
Save