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

Signed-off-by: gregory guy <g-gregory@gmx.fr>
pull/4/head
gregory guy 5 years ago
parent a945a71f83
commit f9eefb884c
No known key found for this signature in database
GPG Key ID: 6EFE0EF249A874C0

@ -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();

@ -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);

Loading…
Cancel
Save