Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
1ff8f6eb
Commit
1ff8f6eb
authored
Feb 09, 2012
by
Moritz Lipp
Browse files
Use correct dimensions for sc_adjust_window
parent
2fbaded5
Changes
1
Hide whitespace changes
Inline
Side-by-side
shortcuts.c
View file @
1ff8f6eb
...
...
@@ -57,10 +57,10 @@ sc_adjust_window(girara_session_t* session, girara_argument_t* argument,
}
/* get window size */
/* TODO: Get correct size of the view widget */
g
int
width
;
gint
height
;
g
tk_window_get_size
(
GTK_WINDOW
(
session
->
gtk
.
window
),
&
width
,
&
height
)
;
GtkAllocation
allocation
;
g
tk_widget_get_allocation
(
session
->
gtk
.
view
,
&
allocation
)
;
gint
width
=
allocation
.
width
;
g
int
height
=
allocation
.
height
;
/* calculate total width and max-height */
double
total_width
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment