Mercurial > dwindows
comparison gtk3/dw.c @ 1076:dbaf1b11c301
Added stub dw_font_set_default() functions for GTK.
After some research I haven't been able to find a way to set the default font for just the running application.
There are APIs for setting it for all applications, but that isn't what I want... so just committing stubs for the moment.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 26 Jun 2011 02:36:23 +0000 |
parents | 5772fa5e24b3 |
children | 27e9a063fbb5 |
comparison
equal
deleted
inserted
replaced
1075:3d117071a50b | 1076:dbaf1b11c301 |
---|---|
2499 gdk_window_reparent(gtk_widget_get_window(GTK_WIDGET(handle)), newparent ? gtk_widget_get_window(GTK_WIDGET(newparent)) : GDK_ROOT_WINDOW(), 0, 0); | 2499 gdk_window_reparent(gtk_widget_get_window(GTK_WIDGET(handle)), newparent ? gtk_widget_get_window(GTK_WIDGET(newparent)) : GDK_ROOT_WINDOW(), 0, 0); |
2500 DW_MUTEX_UNLOCK; | 2500 DW_MUTEX_UNLOCK; |
2501 } | 2501 } |
2502 | 2502 |
2503 /* | 2503 /* |
2504 * Sets the default font used on text based widgets. | |
2505 * Parameters: | |
2506 * fontname: Font name in Dynamic Windows format. | |
2507 */ | |
2508 void API dw_font_set_default(char *fontname) | |
2509 { | |
2510 } | |
2511 | |
2512 /* | |
2504 * Sets the font used by a specified window (widget) handle. | 2513 * Sets the font used by a specified window (widget) handle. |
2505 * Parameters: | 2514 * Parameters: |
2506 * handle: The window (widget) handle. | 2515 * handle: The window (widget) handle. |
2507 * fontname: Name and size of the font in the form "size.fontname" | 2516 * fontname: Name and size of the font in the form "size.fontname" |
2508 */ | 2517 */ |