summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-08-02 16:50:27 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-08-02 21:26:28 +0000
commit82067a12a334c7ada0a4f61089c645f376740544 (patch)
treef220a16b905534e71d95d4e64d9d0aa423beee1a /src/widgets
parentAllow tools sensitive when overflow canvas area also fix a bug i couldent rem... (diff)
downloadinkscape-82067a12a334c7ada0a4f61089c645f376740544.tar.gz
inkscape-82067a12a334c7ada0a4f61089c645f376740544.zip
Remove line height code and ficx coding style
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 75f48f827..f90aac45e 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -508,7 +508,7 @@ void SPDesktopWidget::init( SPDesktopWidget *dtw )
gtk_style_context_add_provider(style_context,
GTK_STYLE_PROVIDER(css_provider),
GTK_STYLE_PROVIDER_PRIORITY_USER);
- g_signal_connect (G_OBJECT (dtw), "event", G_CALLBACK (SPDesktopWidget::event), dtw);
+ g_signal_connect(G_OBJECT(dtw), "event", G_CALLBACK(SPDesktopWidget::event), dtw);
gtk_widget_set_hexpand(GTK_WIDGET(dtw->_canvas), TRUE);
gtk_widget_set_vexpand(GTK_WIDGET(dtw->_canvas), TRUE);
@@ -1000,12 +1000,9 @@ SPDesktopWidget::event(GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw)
// is over the canvas. This redirection is only done for key events and only if there's no
// current item on the canvas, because item events and all mouse events are caught
// and passed on by the canvas acetate (I think). --bb
-
- if ((event->type == GDK_MOTION_NOTIFY ||
- event->type == GDK_BUTTON_RELEASE) &&
- !dtw->_canvas->_inside)
- {
- return sp_desktop_root_handler (nullptr, event, dtw->desktop);
+
+ if ((event->type == GDK_MOTION_NOTIFY || event->type == GDK_BUTTON_RELEASE) && !dtw->_canvas->_inside) {
+ return sp_desktop_root_handler(nullptr, event, dtw->desktop);
}
if ((event->type == GDK_KEY_PRESS || event->type == GDK_KEY_RELEASE)