summaryrefslogtreecommitdiffstats
path: root/src/qt_theme_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt_theme_draw.c')
-rw-r--r--src/qt_theme_draw.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index 49a63ab..cc97963 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -32,7 +32,7 @@ static void qtengine_style_class_init (TQtEngineStyleClass *klass);
static GtkNotebook *notebook = NULL;
static int nb_num_pages = 0;
-static GtkStyleClass *tqparent_class = NULL;
+static GtkStyleClass *parent_class = NULL;
static PangoLayout*
get_insensitive_layout (GdkDrawable *drawable,
@@ -641,7 +641,7 @@ draw_box(GtkStyle * style,
if (DETAIL("menubar"))
{
if (openOfficeFix == 1)
- tqparent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
else
drawMenubar(window,style,state_type,x,y,width,height);
return;
@@ -649,7 +649,7 @@ draw_box(GtkStyle * style,
if (DETAIL("menu"))
{
if (openOfficeFix == 1)
- tqparent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
else
{
if ((x >= 0) && (y >= 0)) /* Work around weirdness in firefox */
@@ -811,7 +811,7 @@ draw_box(GtkStyle * style,
if (DETAIL("toolbar"))
{
if (openOfficeFix == 1)
- tqparent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
else
drawToolbar(window,style,state_type,x,y,width,height);
return;
@@ -1308,7 +1308,7 @@ void draw_layout (GtkStyle *style,
/* In baghira -- even highlight the menu bar items */
if ((GTK_IS_MENU_ITEM(tqparent) && (!GTK_IS_MENU_BAR(tqparent1) || isBaghira || isPolyester)) || GTK_IS_TREE_VIEW(widget))
{
- PangoAttrList *tqlayoutattr;
+ PangoAttrList *layoutattr;
const gchar *text;
gint text_length = 0;
@@ -1324,19 +1324,19 @@ void draw_layout (GtkStyle *style,
textcolorattr->start_index = 0;
textcolorattr->end_index = text_bytelen;
- tqlayoutattr = pango_layout_get_attributes(tqlayout);
+ layoutattr = pango_layout_get_attributes(tqlayout);
- if (tqlayoutattr == NULL)
+ if (layoutattr == NULL)
{
- tqlayoutattr = pango_attr_list_new();
- pango_attr_list_insert(tqlayoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(tqlayout,tqlayoutattr);
- pango_attr_list_unref(tqlayoutattr);
+ layoutattr = pango_attr_list_new();
+ pango_attr_list_insert(layoutattr, pango_attribute_copy(textcolorattr));
+ pango_layout_set_attributes(tqlayout,layoutattr);
+ pango_attr_list_unref(layoutattr);
}
else
{
- pango_attr_list_change(tqlayoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(tqlayout,tqlayoutattr);
+ pango_attr_list_change(layoutattr, pango_attribute_copy(textcolorattr));
+ pango_layout_set_attributes(tqlayout,layoutattr);
}
pango_attribute_destroy(textcolorattr);
}
@@ -1845,7 +1845,7 @@ static void
set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type)
{
GdkPixmap *pixmap;
- gint tqparent_relative;
+ gint parent_relative;
GdkPixmap* pix_test;
/* What kind of horrible person would store a pointer to a widget here... */
@@ -1863,17 +1863,17 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type)
if (pix_test == (GdkPixmap*) GDK_PARENT_RELATIVE)
{
pixmap = NULL;
- tqparent_relative = TRUE;
+ parent_relative = TRUE;
}
else
{
pixmap = pix_test;
- tqparent_relative = FALSE;
+ parent_relative = FALSE;
gdk_drawable_set_colormap(pixmap, style->colormap);
}
if (pixmap && !gdk_drawable_get_colormap (pixmap)) gdk_drawable_set_colormap (pixmap, gdk_drawable_get_colormap (window));
- gdk_window_set_back_pixmap (window, pixmap, tqparent_relative);
+ gdk_window_set_back_pixmap (window, pixmap, parent_relative);
}
else
gdk_window_set_background (window, &style->bg[state_type]);
@@ -1884,7 +1884,7 @@ qtengine_style_class_init (TQtEngineStyleClass *klass)
{
GtkStyleClass *style_class = GTK_STYLE_CLASS (klass);
- tqparent_class = g_type_class_peek_parent (klass);
+ parent_class = g_type_class_peek_parent (klass);
style_class->draw_hline = draw_hline;
style_class->draw_vline = draw_vline;