Ungrab keyboard on release. Use the new stock icons for browser (still broken)
This commit is contained in:
parent
ccb33fe254
commit
092ded9e53
@ -13,13 +13,13 @@ class NavigationToolbar(gtk.Toolbar):
|
|||||||
self._insert_spring()
|
self._insert_spring()
|
||||||
|
|
||||||
self.back = gtk.ToolButton(None, _('Back'))
|
self.back = gtk.ToolButton(None, _('Back'))
|
||||||
self.back.set_icon_name('back')
|
self.back.set_icon_name('stock-back')
|
||||||
self.back.connect("clicked", self.__go_back_cb)
|
self.back.connect("clicked", self.__go_back_cb)
|
||||||
self.insert(self.back, -1)
|
self.insert(self.back, -1)
|
||||||
self.back.show()
|
self.back.show()
|
||||||
|
|
||||||
self.forward = gtk.ToolButton(None, _('Forward'))
|
self.forward = gtk.ToolButton(None, _('Forward'))
|
||||||
self.forward.set_icon_name('forward')
|
self.forward.set_icon_name('stock-forward')
|
||||||
self.forward.connect("clicked", self.__go_forward_cb)
|
self.forward.connect("clicked", self.__go_forward_cb)
|
||||||
self.insert(self.forward, -1)
|
self.insert(self.forward, -1)
|
||||||
self.forward.show()
|
self.forward.show()
|
||||||
|
@ -144,6 +144,8 @@ filter_events(GdkXEvent *xevent, GdkEvent *event, gpointer data)
|
|||||||
g_signal_emit (grabber, signals[KEY_RELEASED], 0, key);
|
g_signal_emit (grabber, signals[KEY_RELEASED], 0, key);
|
||||||
g_free(key);
|
g_free(key);
|
||||||
|
|
||||||
|
XUngrabKeyboard (GDK_WINDOW_XDISPLAY (grabber->root), 0L);
|
||||||
|
|
||||||
return GDK_FILTER_REMOVE;
|
return GDK_FILTER_REMOVE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -160,7 +162,6 @@ filter_events(GdkXEvent *xevent, GdkEvent *event, gpointer data)
|
|||||||
GDK_WINDOW_XID (grabber->root),
|
GDK_WINDOW_XID (grabber->root),
|
||||||
0, GrabModeAsync, GrabModeAsync, 0L);
|
0, GrabModeAsync, GrabModeAsync, 0L);
|
||||||
|
|
||||||
|
|
||||||
return GDK_FILTER_REMOVE;
|
return GDK_FILTER_REMOVE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user