version 1.1, 2025/01/19 02:04:04
|
version 1.4, 2025/04/10 01:24:38
|
Line 1
|
Line 1
|
/* |
/* |
* * |
* $Id$ |
* * * |
* ^$DISPLAY ssvn |
* * * |
|
* *************** |
|
* * * * * |
|
* * MUMPS * |
|
* * * * * |
|
* *************** |
|
* * * |
|
* * * |
|
* * |
|
* |
|
* ssvn_display.c |
|
* ^$DISPLAY ssv |
|
* |
* |
* |
* |
* Author: Serena Willis <jpw@coherent-logic.com> |
* Author: Serena Willis <snw@coherent-logic.com> |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 2020 Coherent Logic Development LLC |
* Copyright (C) 2020, 2025 Coherent Logic Development LLC |
* |
* |
* |
* |
* This file is part of FreeM. |
* This file is part of FreeM. |
Line 35
|
Line 23
|
* You should have received a copy of the GNU Affero Public License |
* You should have received a copy of the GNU Affero Public License |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
|
* $Log$ |
|
* Revision 1.4 2025/04/10 01:24:38 snw |
|
* Remove C++ style comments |
|
* |
|
* Revision 1.3 2025/03/09 19:50:47 snw |
|
* Second phase of REUSE compliance and header reformat |
|
* |
|
* |
|
* SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC |
|
* SPDX-License-Identifier: AGPL-3.0-or-later |
**/ |
**/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
Line 48
|
Line 46
|
|
|
#if defined(HAVE_MWAPI_MOTIF) |
#if defined(HAVE_MWAPI_MOTIF) |
#include <limits.h> |
#include <limits.h> |
//#include <gtk/gtk.h> |
/* #include <gtk/gtk.h> */ |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
//#include <glib.h> |
/* #include <glib.h> */ |
//#include <pango/pangocairo.h> |
/* #include <pango/pangocairo.h> */ |
|
|
#include "mref.h" |
#include "mref.h" |
|
|
Line 73 void ssvn_display_update(void)
|
Line 71 void ssvn_display_update(void)
|
Display *display; |
Display *display; |
Screen *screen; |
Screen *screen; |
|
|
// PangoFontFamily **families; |
/* |
// int n_families; |
PangoFontFamily **families; |
// PangoFontMap *font_map; |
int n_families; |
|
PangoFontMap *font_map; |
|
*/ |
|
|
char *result; |
char *result; |
unsigned long ressize, restail; |
unsigned long ressize, restail; |
Line 102 void ssvn_display_update(void)
|
Line 102 void ssvn_display_update(void)
|
fmtid = XInternAtom (display, "STRING", False); |
fmtid = XInternAtom (display, "STRING", False); |
propid = XInternAtom (display, "XSEL_DATA", False); |
propid = XInternAtom (display, "XSEL_DATA", False); |
incrid = XInternAtom (display, "INCR", False); |
incrid = XInternAtom (display, "INCR", False); |
// font_map = pango_cairo_font_map_get_default (); |
/*font_map = pango_cairo_font_map_get_default (); |
// pango_font_map_list_families (font_map, &families, &n_families); |
pango_font_map_list_families (font_map, &families, &n_families);*/ |
|
|
XConvertSelection (display, bufid, fmtid, propid, window, CurrentTime); |
XConvertSelection (display, bufid, fmtid, propid, window, CurrentTime); |
|
|
Line 158 void ssvn_display_update(void)
|
Line 158 void ssvn_display_update(void)
|
#if 0 |
#if 0 |
if (!ssvn_display_initialized) { |
if (!ssvn_display_initialized) { |
|
|
// printf ("mwapi-gtk: enumerating system fonts... "); |
/* printf ("mwapi-gtk: enumerating system fonts... "); */ |
for (j = 0; j < n_families; j++) { |
for (j = 0; j < n_families; j++) { |
PangoFontFamily *family = families[j]; |
PangoFontFamily *family = families[j]; |
const char *family_name; |
const char *family_name; |
Line 179 void ssvn_display_update(void)
|
Line 179 void ssvn_display_update(void)
|
*/ |
*/ |
|
|
} |
} |
// printf ("%d font families discovered\r\n", n_families); |
/* printf ("%d font families discovered\r\n", n_families); */ |
|
|
} |
} |
#endif |
#endif |
Line 187 void ssvn_display_update(void)
|
Line 187 void ssvn_display_update(void)
|
|
|
} |
} |
|
|
// g_free (families); |
/* g_free (families); */ |
|
|
if (!ssvn_display_initialized) { |
if (!ssvn_display_initialized) { |
ssvn_display_initialized = 1; |
ssvn_display_initialized = 1; |