[gnote] Replace deprecated set_state with set_state_flags



commit 401d47991b71cf89f5793f1a81c099da33870a89
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Thu May 6 23:42:46 2021 +0300

    Replace deprecated set_state with set_state_flags

 src/utils.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index 6553b41c..35acf1bd 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -82,7 +82,7 @@ namespace gnote {
       {
         menu->popdown();
         if(menu->get_attach_widget()) {
-          menu->get_attach_widget()->set_state(Gtk::STATE_NORMAL);
+          menu->get_attach_widget()->set_state_flags(Gtk::STATE_FLAG_NORMAL);
         }
       }
 
@@ -114,7 +114,7 @@ namespace gnote {
                   },
                  button, time);
       if(menu.get_attach_widget()) {
-        menu.get_attach_widget()->set_state(Gtk::STATE_SELECTED);
+        menu.get_attach_widget()->set_state_flags(Gtk::STATE_FLAG_SELECTED);
       }
     }
 


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