silence some glib warnings, g_type_init() is deprecated since glib-2.36

Signed-off-by: gregory guy <g-gregory@gmx.fr>
(cherry picked from commit f9eefb884c)
r14.0.x
gregory guy 6 years ago committed by Michele Calgaro
parent 96ed9b736e
commit 0ceb1ad7f7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -73,7 +73,9 @@ KCMBeagleStatus::KCMBeagleStatus(TQWidget *parent, const char * )
pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box); pb_refresh = new KPushButton (i18n("Refresh Status"), footer_box);
connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshStatus ()) ); connect (pb_refresh, TQT_SIGNAL (clicked()), this, TQT_SLOT (refreshStatus ()) );
#if !GLIB_CHECK_VERSION( 2,36,0 )
g_type_init (); g_type_init ();
#endif
refreshStatus (); refreshStatus ();
load(); load();

@ -68,8 +68,9 @@ SearchDlg::SearchDlg(TQWidget *parent, const char *name)
static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplications, showContacts, showDocuments, static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplications, showContacts, showDocuments,
showConversations, showImages, showMedia, showWebPages, showFilePathName, sortByType, sortByDate, sortByName, sortByRelevance, showAnyDate, showToday, showSinceYesterday, showThisWeek, showConversations, showImages, showMedia, showWebPages, showFilePathName, sortByType, sortByDate, sortByName, sortByRelevance, showAnyDate, showToday, showSinceYesterday, showThisWeek,
showThisMonth, showThisYear}; showThisMonth, showThisYear};
#if !GLIB_CHECK_VERSION( 2,36,0 )
g_type_init(); g_type_init();
#endif
beagle_search = NULL; beagle_search = NULL;
editSearch->setMaxCount(MAX_HISTORY_ITEMS); editSearch->setMaxCount(MAX_HISTORY_ITEMS);
editSearch->setDuplicatesEnabled(false); editSearch->setDuplicatesEnabled(false);

Loading…
Cancel
Save