Commit 15f50cf5 authored by john's avatar john

Change all adj.value variable into int

parent 07d69956
......@@ -695,7 +695,7 @@ public class ConversationEmail : Gtk.Box, Geary.BaseInterface {
/**
* Get the summary's height of the primary message
*/
public uint get_summary_height() {
public int get_summary_height() {
return this.primary_message.get_summary_height();
}
......
......@@ -961,16 +961,16 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
get_adjustment().set_value(y);
}
private void scroll_to_anchor(EmailRow row, uint anchor_y) {
private void scroll_to_anchor(EmailRow row, int anchor_y) {
Gtk.Allocation? alloc = null;
row.get_allocation(out alloc);
Gtk.Adjustment adj = get_adjustment();
uint page_size = (uint) adj.get_page_size();
int page_size = (int) adj.get_page_size();
uint summary_height = row.view.get_summary_height();
uint y = 0;
uint necessary_y_offset = summary_height + anchor_y;
int summary_height = row.view.get_summary_height();
int y = 0;
int necessary_y_offset = summary_height + anchor_y;
if (necessary_y_offset <= page_size) {
//The anchor can be seen with in the page, just scroll to the row.
scroll_to(row);
......
......@@ -604,7 +604,7 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
}
/** Get the height of the summary part */
public uint get_summary_height() {
public int get_summary_height() {
return summary.get_allocated_height();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment