Mercurial > dwindows
comparison gtk3/dw.c @ 790:1822c8a71936
Removed a now unused helper function and fixed a discared qualifier error.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 22 Mar 2011 05:21:57 +0000 |
parents | 8fe51d916b36 |
children | 4eb337e18caf |
comparison
equal
deleted
inserted
replaced
789:8fe51d916b36 | 790:1822c8a71936 |
---|---|
2619 DW_MUTEX_LOCK; | 2619 DW_MUTEX_LOCK; |
2620 gdk_window_reparent(gtk_widget_get_window(GTK_WIDGET(handle)), newparent ? gtk_widget_get_window(GTK_WIDGET(newparent)) : GDK_ROOT_WINDOW(), 0, 0); | 2620 gdk_window_reparent(gtk_widget_get_window(GTK_WIDGET(handle)), newparent ? gtk_widget_get_window(GTK_WIDGET(newparent)) : GDK_ROOT_WINDOW(), 0, 0); |
2621 DW_MUTEX_UNLOCK; | 2621 DW_MUTEX_UNLOCK; |
2622 } | 2622 } |
2623 | 2623 |
2624 static int _set_font(HWND handle, char *fontname) | |
2625 { | |
2626 int retval = FALSE; | |
2627 PangoFontDescription *font = pango_font_description_from_string(fontname); | |
2628 | |
2629 if(font) | |
2630 { | |
2631 gtk_widget_modify_font(handle, font); | |
2632 pango_font_description_free(font); | |
2633 } | |
2634 return retval; | |
2635 } | |
2636 | |
2637 /* | 2624 /* |
2638 * Sets the font used by a specified window (widget) handle. | 2625 * Sets the font used by a specified window (widget) handle. |
2639 * Parameters: | 2626 * Parameters: |
2640 * handle: The window (widget) handle. | 2627 * handle: The window (widget) handle. |
2641 * fontname: Name and size of the font in the form "size.fontname" | 2628 * fontname: Name and size of the font in the form "size.fontname" |
8471 * page: Box handle to be packed. | 8458 * page: Box handle to be packed. |
8472 */ | 8459 */ |
8473 void dw_notebook_pack(HWND handle, unsigned long pageid, HWND page) | 8460 void dw_notebook_pack(HWND handle, unsigned long pageid, HWND page) |
8474 { | 8461 { |
8475 GtkWidget *label, *child, *oldlabel, **pagearray; | 8462 GtkWidget *label, *child, *oldlabel, **pagearray; |
8476 gchar *text = NULL; | 8463 const gchar *text = NULL; |
8477 int num, z, realpage = -1, pad, _locked_by_me = FALSE; | 8464 int num, z, realpage = -1, pad, _locked_by_me = FALSE; |
8478 char ptext[100]; | 8465 char ptext[100]; |
8479 | 8466 |
8480 DW_MUTEX_LOCK; | 8467 DW_MUTEX_LOCK; |
8481 sprintf(ptext, "_dw_page%d", (int)pageid); | 8468 sprintf(ptext, "_dw_page%d", (int)pageid); |