Drop gtk2 support

This commit is contained in:
Andre Miranda
2020-06-11 20:37:05 -03:00
committed by Simon Steinbeiß
parent 05bd0b14bd
commit 04407bceee
13 changed files with 192 additions and 916 deletions

View File

@@ -126,7 +126,6 @@ init_timeout (void)
if (gtk_status_icon_get_visible (status_icon))
{
#if GTK_CHECK_VERSION (2,16,0)
g_snprintf (tooltip, sizeof(tooltip),
_("<b>Processes:</b> %u\n"
"<b>CPU:</b> %.0f%%\n"
@@ -134,15 +133,6 @@ init_timeout (void)
"<b>Swap:</b> %s"),
num_processes, cpu, memory_info, swap_info);
gtk_status_icon_set_tooltip_markup (GTK_STATUS_ICON (status_icon), tooltip);
#else
g_snprintf (tooltip, sizeof(tooltip),
_("Processes: %u\n"
"CPU: %.0f%%\n"
"Memory: %s\n"
"Swap: %s"),
num_processes, cpu, memory_info, swap_info);
gtk_status_icon_set_tooltip (GTK_STATUS_ICON (status_icon), tooltip);
#endif
}
xtm_task_manager_update_model (task_manager);