Uncrustified new code
This commit is contained in:
@@ -559,24 +559,24 @@ ag_window_get_uri(AgWindow *window)
|
||||
void
|
||||
ag_window_settings_restore(GtkWindow *window, GSettings *settings)
|
||||
{
|
||||
gint width,
|
||||
height;
|
||||
gboolean maximized;
|
||||
gint width,
|
||||
height;
|
||||
gboolean maximized;
|
||||
GdkScreen *screen;
|
||||
|
||||
width = g_settings_get_int(settings, "width");
|
||||
height = g_settings_get_int(settings, "height");
|
||||
width = g_settings_get_int(settings, "width");
|
||||
height = g_settings_get_int(settings, "height");
|
||||
maximized = g_settings_get_boolean(settings, "maximized");
|
||||
|
||||
if ((width > 1) && (height > 1)) {
|
||||
gint max_width,
|
||||
max_height;
|
||||
|
||||
screen = gtk_widget_get_screen(GTK_WIDGET(window));
|
||||
max_width = gdk_screen_get_width(screen);
|
||||
screen = gtk_widget_get_screen(GTK_WIDGET(window));
|
||||
max_width = gdk_screen_get_width(screen);
|
||||
max_height = gdk_screen_get_height(screen);
|
||||
|
||||
width = CLAMP(width, 0, max_width);
|
||||
width = CLAMP(width, 0, max_width);
|
||||
height = CLAMP(height, 0, max_height);
|
||||
|
||||
gtk_window_set_default_size(window, width, height);
|
||||
|
Reference in New Issue
Block a user