Mercurial > vim
comparison src/if_mzsch.c @ 28303:9849df834f1d v8.2.4677
patch 8.2.4677: the Athena GUI support is outdated
Commit: https://github.com/vim/vim/commit/0b962e5685edd41b55d5427b894797e725707639
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 3 18:02:37 2022 +0100
patch 8.2.4677: the Athena GUI support is outdated
Problem: The Athena GUI support is outdated.
Solution: Remove the Athena GUI code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Apr 2022 19:15:04 +0200 |
parents | ac75c145f0a9 |
children | 89e1d67814a9 |
comparison
equal
deleted
inserted
replaced
28302:d81a8f2db704 | 28303:9849df834f1d |
---|---|
807 static void CALLBACK timer_proc(HWND, UINT, UINT_PTR, DWORD); | 807 static void CALLBACK timer_proc(HWND, UINT, UINT_PTR, DWORD); |
808 static UINT timer_id = 0; | 808 static UINT timer_id = 0; |
809 #elif defined(FEAT_GUI_GTK) | 809 #elif defined(FEAT_GUI_GTK) |
810 static gboolean timer_proc(gpointer); | 810 static gboolean timer_proc(gpointer); |
811 static guint timer_id = 0; | 811 static guint timer_id = 0; |
812 #elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 812 #elif defined(FEAT_GUI_MOTIF) |
813 static void timer_proc(XtPointer, XtIntervalId *); | 813 static void timer_proc(XtPointer, XtIntervalId *); |
814 static XtIntervalId timer_id = (XtIntervalId)0; | 814 static XtIntervalId timer_id = (XtIntervalId)0; |
815 #endif | 815 #endif |
816 | 816 |
817 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) // Win32 console and Unix | 817 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) // Win32 console and Unix |
843 static void CALLBACK | 843 static void CALLBACK |
844 timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT_PTR idEvent UNUSED, DWORD dwTime UNUSED) | 844 timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT_PTR idEvent UNUSED, DWORD dwTime UNUSED) |
845 # elif defined(FEAT_GUI_GTK) | 845 # elif defined(FEAT_GUI_GTK) |
846 static gboolean | 846 static gboolean |
847 timer_proc(gpointer data UNUSED) | 847 timer_proc(gpointer data UNUSED) |
848 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 848 # elif defined(FEAT_GUI_MOTIF) |
849 static void | 849 static void |
850 timer_proc(XtPointer timed_out UNUSED, XtIntervalId *interval_id UNUSED) | 850 timer_proc(XtPointer timed_out UNUSED, XtIntervalId *interval_id UNUSED) |
851 # endif | 851 # endif |
852 { | 852 { |
853 scheme_check_threads(); | 853 scheme_check_threads(); |
854 # if defined(FEAT_GUI_GTK) | 854 # if defined(FEAT_GUI_GTK) |
855 return TRUE; // continue receiving notifications | 855 return TRUE; // continue receiving notifications |
856 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 856 # elif defined(FEAT_GUI_MOTIF) |
857 // renew timeout | 857 // renew timeout |
858 if (mz_threads_allow && p_mzq > 0) | 858 if (mz_threads_allow && p_mzq > 0) |
859 timer_id = XtAppAddTimeOut(app_context, p_mzq, | 859 timer_id = XtAppAddTimeOut(app_context, p_mzq, |
860 timer_proc, NULL); | 860 timer_proc, NULL); |
861 # endif | 861 # endif |
866 { | 866 { |
867 # if defined(FEAT_GUI_MSWIN) | 867 # if defined(FEAT_GUI_MSWIN) |
868 timer_id = SetTimer(NULL, 0, p_mzq, timer_proc); | 868 timer_id = SetTimer(NULL, 0, p_mzq, timer_proc); |
869 # elif defined(FEAT_GUI_GTK) | 869 # elif defined(FEAT_GUI_GTK) |
870 timer_id = g_timeout_add((guint)p_mzq, (GSourceFunc)timer_proc, NULL); | 870 timer_id = g_timeout_add((guint)p_mzq, (GSourceFunc)timer_proc, NULL); |
871 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 871 # elif defined(FEAT_GUI_MOTIF) |
872 timer_id = XtAppAddTimeOut(app_context, p_mzq, timer_proc, NULL); | 872 timer_id = XtAppAddTimeOut(app_context, p_mzq, timer_proc, NULL); |
873 # endif | 873 # endif |
874 } | 874 } |
875 | 875 |
876 static void | 876 static void |
878 { | 878 { |
879 # if defined(FEAT_GUI_MSWIN) | 879 # if defined(FEAT_GUI_MSWIN) |
880 KillTimer(NULL, timer_id); | 880 KillTimer(NULL, timer_id); |
881 # elif defined(FEAT_GUI_GTK) | 881 # elif defined(FEAT_GUI_GTK) |
882 g_source_remove(timer_id); | 882 g_source_remove(timer_id); |
883 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 883 # elif defined(FEAT_GUI_MOTIF) |
884 XtRemoveTimeOut(timer_id); | 884 XtRemoveTimeOut(timer_id); |
885 # endif | 885 # endif |
886 timer_id = 0; | 886 timer_id = 0; |
887 } | 887 } |
888 | 888 |