[libshumate] Remove g_intern_static_string in use with gtk_widget_class_set_css_name
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] Remove g_intern_static_string in use with gtk_widget_class_set_css_name
- Date: Wed, 26 Jan 2022 10:15:54 +0000 (UTC)
commit 0b11352a0cb4b8cf0aef0acbbd6d8c769692c9f8
Author: Corentin Noël <corentin noel collabora com>
Date: Wed Jan 26 10:59:41 2022 +0100
Remove g_intern_static_string in use with gtk_widget_class_set_css_name
It is not really required these days.
shumate/shumate-map.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/shumate/shumate-map.c b/shumate/shumate-map.c
index ddbea76..7f314ff 100644
--- a/shumate/shumate-map.c
+++ b/shumate/shumate-map.c
@@ -814,7 +814,7 @@ shumate_map_class_init (ShumateMapClass *klass)
0);
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
- gtk_widget_class_set_css_name (widget_class, "map-view";
+ gtk_widget_class_set_css_name (widget_class, "map-view");
go_to_quark = g_quark_from_static_string ("go-to");
}
@@ -826,6 +826,7 @@ shumate_map_init (ShumateMap *self)
GtkGesture *drag_gesture;
GtkEventController *scroll_controller;
GtkEventController *motion_controller;
+ GtkEventController *key_controller;
GtkGesture *swipe_gesture;
GtkGesture *zoom_gesture;
GtkGesture *rotate_gesture;
@@ -875,6 +876,9 @@ shumate_map_init (ShumateMap *self)
gtk_gesture_group (zoom_gesture, rotate_gesture);
+ key_controller = gtk_event_controller_key_new ();
+ gtk_widget_add_controller (GTK_WIDGET (self), key_controller);
+
gtk_widget_set_overflow (GTK_WIDGET (self), GTK_OVERFLOW_HIDDEN);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]