[libnma/lr/gtk-4.0: 8/33] utils: remove nma_gtk_widget_activate_default()




commit c1c27c8fa75ee18a647ac8023101a9b2bc19da87
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Thu Oct 14 16:34:46 2021 +0200

    utils: remove nma_gtk_widget_activate_default()
    
    We don't use it anywhere any more.

 src/nma-private.h  |  1 -
 src/nma-ui-utils.c | 12 +-----------
 2 files changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/nma-private.h b/src/nma-private.h
index 8470fbf3..6a6f25b6 100644
--- a/src/nma-private.h
+++ b/src/nma-private.h
@@ -14,7 +14,6 @@
 #define gtk_editable_set_width_chars(editable, n_chars)  gtk_entry_set_width_chars(GTK_ENTRY(editable), 
(n_chars))
 #endif
 
-void nma_gtk_widget_activate_default (GtkWidget *widget);
 
 #define NMA_PRIVATE_H
 
diff --git a/src/nma-ui-utils.c b/src/nma-ui-utils.c
index 6c797d02..40042e96 100644
--- a/src/nma-ui-utils.c
+++ b/src/nma-ui-utils.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2015 Red Hat, Inc.
+ * Copyright (C) 2015 - 2021 Red Hat, Inc.
  */
 
 #include "nm-default.h"
@@ -206,16 +206,6 @@ popup_menu_item_info_register (GtkWidget *item,
                               (GClosureNotify) popup_menu_item_info_destroy, 0);
 }
 
-void
-nma_gtk_widget_activate_default (GtkWidget *widget)
-{
-#if GTK_CHECK_VERSION(3,90,0)
-       gtk_widget_activate_default (widget);
-#else
-       gtk_window_activate_default (GTK_WINDOW (widget));
-#endif
-}
-
 static void
 icon_release_cb (GtkEntry *entry,
                  GtkEntryIconPosition position,


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