From f9eefb884c7223c2c357ef7e89cb2f397fd0f99b Mon Sep 17 00:00:00 2001 From: gregory guy Date: Thu, 23 May 2019 15:01:39 +0200 Subject: [PATCH] silence some glib warnings, g_type_init() is deprecated since glib-2.36 Signed-off-by: gregory guy --- kerry/src/kcm/status.cpp | 2 ++ kerry/src/searchdlg.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kerry/src/kcm/status.cpp b/kerry/src/kcm/status.cpp index 0e4ba9a..dfef642 100644 --- a/kerry/src/kcm/status.cpp +++ b/kerry/src/kcm/status.cpp @@ -73,7 +73,9 @@ KCMBeagleStatus::KCMBeagleStatus(TQWidget *parent, const char * ) pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box); connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshStatus ()) ); +#if !GLIB_CHECK_VERSION( 2,36,0 ) g_type_init (); +#endif refreshStatus (); load(); diff --git a/kerry/src/searchdlg.cpp b/kerry/src/searchdlg.cpp index 32eabb0..25e428b 100644 --- a/kerry/src/searchdlg.cpp +++ b/kerry/src/searchdlg.cpp @@ -68,8 +68,9 @@ SearchDlg::SearchDlg(TQWidget *parent, const char *name) static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplications, showContacts, showDocuments, showConversations, showImages, showMedia, showWebPages, showFilePathName, sortByType, sortByDate, sortByName, sortByRelevance, showAnyDate, showToday, showSinceYesterday, showThisWeek, showThisMonth, showThisYear}; - +#if !GLIB_CHECK_VERSION( 2,36,0 ) g_type_init(); +#endif beagle_search = NULL; editSearch->setMaxCount(MAX_HISTORY_ITEMS); editSearch->setDuplicatesEnabled(false);