From: Daniel Carl Date: Mon, 29 Jul 2013 18:17:30 +0000 (+0200) Subject: Moved config for default window size to config.def.h. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=c034020225ab30edf39377189b6992559e2bdcc0;p=vimb.git Moved config for default window size to config.def.h. Increased the default windo size to 800x600. --- diff --git a/src/config.def.h b/src/config.def.h index 88f368b..4d3dc2f 100644 --- a/src/config.def.h +++ b/src/config.def.h @@ -38,6 +38,9 @@ #define MAXIMUM_HINTS 500 +#define WIN_WIDTH 800 +#define WIN_HEIGHT 600 + /* remove next line if the bookmark file fits to the new format "URLtitle of pagetag1 tag2" */ #define SHOW_ANNOUNCEMENT diff --git a/src/main.c b/src/main.c index 6af9d72..441469c 100644 --- a/src/main.c +++ b/src/main.c @@ -658,7 +658,7 @@ static void init_core(void) } GdkGeometry hints = {10, 10}; - gtk_window_set_default_size(GTK_WINDOW(gui->window), 640, 480); + gtk_window_set_default_size(GTK_WINDOW(gui->window), WIN_WIDTH, WIN_HEIGHT); gtk_window_set_title(GTK_WINDOW(gui->window), "vimb"); gtk_window_set_geometry_hints(GTK_WINDOW(gui->window), NULL, &hints, GDK_HINT_MIN_SIZE); gtk_window_set_icon(GTK_WINDOW(gui->window), NULL);