Commit 6404253a authored by Corentin Noël's avatar Corentin Noël
Browse files

Remove g_intern_static_string in use with gtk_widget_class_set_css_name

It is not really required these days.
parent b614d901
Pipeline #356734 passed with stages
in 3 minutes and 5 seconds
......@@ -173,7 +173,7 @@ shumate_compass_class_init (ShumateCompassClass *klass)
g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-compass"));
gtk_widget_class_set_css_name (widget_class, "map-compass");
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
display = gdk_display_get_default ();
......
......@@ -129,7 +129,7 @@ shumate_layer_class_init (ShumateLayerClass *klass)
N_PROPERTIES,
obj_properties);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-layer"));
gtk_widget_class_set_css_name (widget_class, "map-layer");
}
static void
......
......@@ -169,7 +169,7 @@ shumate_license_class_init (ShumateLicenseClass *klass)
g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-license"));
gtk_widget_class_set_css_name (widget_class, "map-license");
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
display = gdk_display_get_default ();
......
......@@ -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, g_intern_static_string ("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);
}
......
......@@ -280,7 +280,7 @@ shumate_marker_class_init (ShumateMarkerClass *klass)
"latitude");
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-marker"));
gtk_widget_class_set_css_name (widget_class, "map-marker");
}
static void
......
......@@ -334,7 +334,7 @@ shumate_scale_class_init (ShumateScaleClass *klass)
g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-scale"));
gtk_widget_class_set_css_name (widget_class, "map-scale");
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
display = gdk_display_get_default ();
......
......@@ -320,7 +320,7 @@ shumate_tile_class_init (ShumateTileClass *klass)
N_PROPERTIES,
obj_properties);
gtk_widget_class_set_css_name (widget_class, g_intern_static_string ("map-tile"));
gtk_widget_class_set_css_name (widget_class, "map-tile");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment