[network-manager-applet/lr/gtk4: 38/43] nma/wifi-dialog: paint over the GTK4 incompatibilities



commit f8208378662719e4761e7ff6c4f2eaec9446374b
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Sep 10 16:05:23 2019 +0200

    nma/wifi-dialog: paint over the GTK4 incompatibilities
    
    Essentially to get the thing to compile for now.

 src/libnma/nma-wifi-dialog.c | 4 ++++
 1 file changed, 4 insertions(+)
---
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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]