Setup mouse gestures properly without a restart
This commit is contained in:
parent
06bd549cb1
commit
c4808e1701
1 changed files with 10 additions and 0 deletions
|
@ -220,8 +220,18 @@ static void mouse_gestures_deactivate (MidoriExtension *extension, MidoriApp *ap
|
||||||
|
|
||||||
static void mouse_gestures_activate (MidoriExtension *extension, MidoriApp *app)
|
static void mouse_gestures_activate (MidoriExtension *extension, MidoriApp *app)
|
||||||
{
|
{
|
||||||
|
KatzeArray* browsers;
|
||||||
|
MidoriBrowser* browser;
|
||||||
|
guint i;
|
||||||
|
|
||||||
gesture = mouse_gesture_new ();
|
gesture = mouse_gesture_new ();
|
||||||
|
|
||||||
|
browsers = katze_object_get_object (app, "browsers");
|
||||||
|
i = 0;
|
||||||
|
while ((browser = katze_array_get_nth_item (browsers, i++)))
|
||||||
|
mouse_gestures_browser_cb (app, browser);
|
||||||
|
g_object_unref (browsers);
|
||||||
|
|
||||||
g_signal_connect (app, "add-browser",
|
g_signal_connect (app, "add-browser",
|
||||||
G_CALLBACK (mouse_gestures_browser_cb), NULL);
|
G_CALLBACK (mouse_gestures_browser_cb), NULL);
|
||||||
g_signal_connect (extension, "deactivate",
|
g_signal_connect (extension, "deactivate",
|
||||||
|
|
Loading…
Reference in a new issue