[gtk+] Remove unused gtk_style_get_font_internal() function
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove unused gtk_style_get_font_internal() function
- Date: Sat, 19 Jun 2010 22:52:01 +0000 (UTC)
commit d5d7fd9f519660349138473bfda6414ababd5794
Author: Javier Jardón <jjardon gnome org>
Date: Sun Jun 20 00:49:15 2010 +0200
Remove unused gtk_style_get_font_internal() function
This function is no longer necesary as draw_string() function
was dropped from GtkStyle
See commit 5300dc2b36c1e533bea45046549f4cf9d3bdb687
gtk/gtkstyle.c | 54 ------------------------------------------------------
1 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 74fc195..9791f67 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -344,8 +344,6 @@ static void hls_to_rgb (gdouble *h,
static void style_unrealize_cursor_gcs (GtkStyle *style);
-static GdkFont *gtk_style_get_font_internal (GtkStyle *style);
-
/*
* Data for default check and radio buttons
*/
@@ -6077,58 +6075,6 @@ gtk_border_get_type (void)
return our_type;
}
-static GdkFont *
-gtk_style_get_font_internal (GtkStyle *style)
-{
- g_return_val_if_fail (GTK_IS_STYLE (style), NULL);
-
- if (style->private_font && style->private_font_desc)
- {
- if (!style->font_desc ||
- !pango_font_description_equal (style->private_font_desc, style->font_desc))
- {
- gdk_font_unref (style->private_font);
- style->private_font = NULL;
-
- if (style->private_font_desc)
- {
- pango_font_description_free (style->private_font_desc);
- style->private_font_desc = NULL;
- }
- }
- }
-
- if (!style->private_font)
- {
- GdkDisplay *display;
-
- if (style->colormap)
- {
- display = gdk_screen_get_display (gdk_colormap_get_screen (style->colormap));
- }
- else
- {
- display = gdk_display_get_default ();
- GTK_NOTE (MULTIHEAD,
- g_warning ("gtk_style_get_font() should not be called on an unattached style"));
- }
-
- if (style->font_desc)
- {
- style->private_font = gdk_font_from_description_for_display (display, style->font_desc);
- style->private_font_desc = pango_font_description_copy (style->font_desc);
- }
-
- if (!style->private_font)
- style->private_font = gdk_font_load_for_display (display, "fixed");
-
- if (!style->private_font)
- g_error ("Unable to load \"fixed\" font");
- }
-
- return style->private_font;
-}
-
typedef struct _CursorInfo CursorInfo;
struct _CursorInfo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]