X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/219dc95cf771d5ba07aa19a3b33002a649682060..c00fce3ab1dc8b810a439e81e419d7b8ae1d97b9:/disobedience/disobedience.c diff --git a/disobedience/disobedience.c b/disobedience/disobedience.c index dc80d0c..72b0720 100644 --- a/disobedience/disobedience.c +++ b/disobedience/disobedience.c @@ -75,6 +75,9 @@ int choosealpha; /** @brief True if a NOP is in flight */ static int nop_in_flight; +/** @brief Global tooltip group */ +GtkTooltips *tips; + /* Window creation --------------------------------------------------------- */ /* Note that all the client operations kicked off from here will only complete @@ -374,7 +377,7 @@ int main(int argc, char **argv) { /* create the event loop */ D(("create main loop")); mainloop = g_main_loop_new(0, 0); - if(config_read()) fatal(0, "cannot read configuration"); + if(config_read(0)) fatal(0, "cannot read configuration"); /* create the clients */ if(!(client = gtkclient()) || !(logclient = gtkclient())) @@ -389,6 +392,8 @@ int main(int argc, char **argv) { * unresponsiveness. It's not very useful in production use. */ if(0) g_timeout_add(1000/*milliseconds*/, heartbeat, 0); + /* global tooltips */ + tips = gtk_tooltips_new(); make_toplevel_window(); /* reset styles now everything has its name */ gtk_rc_reset_styles(gtk_settings_get_for_screen(gdk_screen_get_default()));