Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Oxygen for GTK
Commits
828e94f5
Commit
828e94f5
authored
Feb 24, 2012
by
Ruslan Kabatsayev
Browse files
Resize combobox list when ypad has been tweaked
parent
43cd31b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/animations/oxygenanimations.cpp
View file @
828e94f5
...
...
@@ -387,12 +387,23 @@ namespace Oxygen
}
g_list_free
(
columns
);
if
(
Gtk
::
gtk_combobox_is_tree_view
(
widget
)
&&
resizedAnything
)
if
(
Gtk
::
gtk_combobox_is_tree_view
(
widget
)
)
{
//
TODO: r
esize combobox list
//
R
esize combobox list
// NOTE: there are some corner cases, like the list
// being above the button; the list being too high so
// it's scrolled, etc. - these must be taken into account
// it's scrolled, etc. - these must be taken into account; currently they are not
GtkRequisition
req
;
int
w
,
h
;
GtkWidget
*
window
=
gtk_widget_get_parent
(
gtk_widget_get_parent
(
widget
));
// What height should be set
gtk_widget_size_request
(
gtk_widget_get_parent
(
widget
),
&
req
);
// What size is actually set
gtk_window_get_size
(
GTK_WINDOW
(
window
),
&
w
,
&
h
);
if
(
h
>
req
.
height
)
gtk_widget_set_size_request
(
window
,
w
,
req
.
height
);
}
return
TRUE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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