X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fmain.c;h=20b9b14a8b10ee65153791778278cbd742066d07;hp=7379a64cb009dd2a296c6fd6440fb6da571537ed;hb=b182d98e4534d7b84a4d99c08b0f343e80d64ee4;hpb=03759c1d9512afb87624c268481d5c9c499e8275 diff --git a/src/main.c b/src/main.c index 7379a64..20b9b14 100644 --- a/src/main.c +++ b/src/main.c @@ -29,8 +29,9 @@ #include #include +#include #include "http.h" -#include "log.h" +#include #include "ttrss.h" #include "ttrss_ws.h" #include "webbrowser.h" @@ -451,12 +452,14 @@ static void save_settings() gtk_window_get_size(window, &w, &h); gtk_window_get_position(window, &x, &y); - log_debug("save_settings(): x=%d, y=%d", x, y); + log_debug("save_settings(): x=%d, y=%d, w=%d, h=%d", x, y, w, h); g_settings_set_int(settings, "window-x", x); g_settings_set_int(settings, "window-y", y); g_settings_set_int(settings, "window-width", w); g_settings_set_int(settings, "window-height", h); + + g_settings_sync(); } gboolean @@ -602,6 +605,9 @@ int main(int argc, char **argv) panh = GTK_WIDGET(gtk_builder_get_object(builder, "webkit_window")); + webbrowser_init(GTK_STATUSBAR(gtk_builder_get_object + (builder, "statusbar"))); + gtk_container_add(GTK_CONTAINER(panh), web_get_widget()); g_object_unref(G_OBJECT(builder));