summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-02-09 17:02:38 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-02-09 17:02:38 +0000
commit339bdf8dd21d024b4f5bf382590702c0f8b28034 (patch)
tree8f46d3c037cec1d43139f5668ee900db6ab9ec45 /src/theme.h
parent116fc5546f3ab87a6a2650aa7afa4aa5c842a9bd (diff)
downloadmetacity-339bdf8dd21d024b4f5bf382590702c0f8b28034.tar.gz
metacity-339bdf8dd21d024b4f5bf382590702c0f8b28034.tar.bz2
try to make more error message strings the same, easier for translators
2002-02-09 Havoc Pennington <hp@pobox.com> * src/theme-parser.c: try to make more error message strings the same, easier for translators * src/theme.c (meta_draw_op_free): free color spec for line op (meta_theme_free): free the integer_constants hash * src/theme-parser.c (parse_boolean): move above first use * src/theme-viewer.c: fixes for theme.h changes * src/frames.c (queue_recalc_func): don't recreate layout immediately, just save title text. should speed things up. (meta_frames_set_title): just remove the layout here also, and save title text. * src/theme-parser.c (parse_toplevel_element): parse title_scale attribute on frame_geometry * src/theme.c: support setting the text size * src/frames.c: support setting the text size * theme-format.txt: updates
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/theme.h b/src/theme.h
index 8f9936f..5ba1790 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -79,6 +79,9 @@ struct _MetaFrameLayout
/* Space around buttons */
GtkBorder button_border;
+ /* scale factor for title text */
+ double title_scale;
+
/* Whether title text will be displayed */
guint has_title : 1;
};
@@ -632,6 +635,10 @@ GdkPixbuf* meta_theme_load_image (MetaTheme *theme,
const char *filename,
GError **error);
+double meta_theme_get_title_scale (MetaTheme *theme,
+ MetaFrameType type,
+ MetaFrameFlags flags);
+
void meta_theme_draw_frame (MetaTheme *theme,
GtkWidget *widget,
GdkDrawable *drawable,
@@ -716,7 +723,11 @@ char* meta_theme_replace_constants (MetaTheme *theme,
/* random stuff */
-int meta_gtk_widget_get_text_height (GtkWidget *widget);
+PangoFontDescription* meta_gtk_widget_get_font_desc (GtkWidget *widget,
+ double scale);
+int meta_pango_font_desc_get_text_height (PangoFontDescription *font_desc,
+ PangoContext *context);
+
/* Enum converters */
MetaGtkColorComponent meta_color_component_from_string (const char *str);