summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-09-10 16:05:23 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-09-20 15:22:37 +0200
commit08cd414e36b83ebeb240906d258b3a483c9f4119 (patch)
tree9c550d415c5f9cf0dba73963dadbacb6c9068e3b
parentaf58de61c24bba3f0160c9a27a89c8ea716abbc9 (diff)
downloadnetwork-manager-applet-08cd414e36b83ebeb240906d258b3a483c9f4119.tar.gz
nma/wifi-dialog: paint over the GTK4 incompatibilities
Essentially to get the thing to compile for now.
-rw-r--r--src/libnma/nma-wifi-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnma/nma-wifi-dialog.c b/src/libnma/nma-wifi-dialog.c
index 2b969f6e..b7f4ca49 100644
--- a/src/libnma/nma-wifi-dialog.c
+++ b/src/libnma/nma-wifi-dialog.c
@@ -519,7 +519,9 @@ connection_combo_init (NMAWifiDialog *self)
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), renderer, TRUE);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (widget), renderer,
"text", C_NAME_COLUMN);
+#if !GTK_CHECK_VERSION(3,96,0)
gtk_combo_box_set_wrap_width (GTK_COMBO_BOX (widget), 1);
+#endif
gtk_combo_box_set_model (GTK_COMBO_BOX (widget), priv->connection_model);
@@ -1098,8 +1100,10 @@ internal_init (NMAWifiDialog *self,
priv->ok_response_button = widget;
}
+#if !GTK_CHECK_VERSION(3,96,0)
g_object_set (G_OBJECT (widget), "can-default", TRUE, NULL);
gtk_widget_grab_default (widget);
+#endif
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "wifi_dialog"));
if (!widget) {