gtk: Add utils imported from chrome.

This commit is contained in:
Cheng Zhao 2014-02-14 13:59:41 +00:00
parent 426e7645bc
commit 6bd56f2a52
7 changed files with 842 additions and 5 deletions

View file

@ -143,8 +143,8 @@ bool HandleTitleBarLeftMousePress(
// the call to gtk_window_maximize fails. To work around this, we
// keep track of the last click and if it's going to be a double click,
// we don't call gtk_window_begin_move_drag.
DCHECK(event->type == GDK_BUTTON_PRESS);
DCHECK(event->button == 1);
DCHECK_EQ(event->type, GDK_BUTTON_PRESS);
DCHECK_EQ(event->button, 1);
static GtkSettings* settings = gtk_settings_get_default();
gint double_click_time = 250;