Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Use glib helper function to set sigterm signal. Fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Oct 19, 2015
1 parent a09e5cc commit dc236e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/lightdm-webkit2-greeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dc236e2

Please sign in to comment.