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.c198
1 files changed, 99 insertions, 99 deletions
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index c67016c..49a63ab 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -18,7 +18,7 @@
#define DETAIL(xx) ((detail) && (!strcmp(xx, detail)))
#define DETAILHAS(xx) ((detail) && (strstr(detail, xx)))
-#define PARENT(xx) ((parent) && (!strcmp(xx, gtk_widget_get_name(parent))))
+#define PARENT(xx) ((tqparent) && (!strcmp(xx, gtk_widget_get_name(tqparent))))
#ifndef max
#define max(x,y) ((x)>=(y)?(x):(y))
#endif
@@ -26,17 +26,17 @@
#define min(x,y) ((x)<=(y)?(x):(y))
#endif
-static void qtengine_style_init (QtEngineStyle *style);
-static void qtengine_style_class_init (QtEngineStyleClass *klass);
+static void qtengine_style_init (TQtEngineStyle *style);
+static void qtengine_style_class_init (TQtEngineStyleClass *klass);
static GtkNotebook *notebook = NULL;
static int nb_num_pages = 0;
-static GtkStyleClass *parent_class = NULL;
+static GtkStyleClass *tqparent_class = NULL;
static PangoLayout*
get_insensitive_layout (GdkDrawable *drawable,
- PangoLayout *layout);
+ PangoLayout *tqlayout);
static GtkShadowType
@@ -81,7 +81,7 @@ draw_hline(GtkStyle* style,
gint x2,
gint y)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("HLINE (%d,%d,%d) Widget: %s Detail: %s\n",x1,y1,y,gtk_widget_get_name(widget),detail);
if (DETAIL("vscale"))
@@ -102,7 +102,7 @@ draw_vline(GtkStyle* style,
gint yDest,
gint x)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("VLINE (%d,%d,%d) Widget: %s Detail: %s\n",ySource ,yDest ,x,gtk_widget_get_name(widget),detail);
@@ -135,7 +135,7 @@ draw_shadow(GtkStyle *style,
sanitize_size(window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Shadow (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);
@@ -159,9 +159,9 @@ draw_shadow(GtkStyle *style,
}
/* The remainder of this function was borrowed from the "Metal" theme/
- I don't really want to use Qt to draw these frames as there are too
+ I don't really want to use TQt to draw these frames as there are too
many of them (it would slow down the theme engine even more).
- TODO: Make them use the Qt color palette */
+ TODO: Make them use the TQt color palette */
switch (shadow_type)
{
@@ -459,7 +459,7 @@ draw_arrow(GtkStyle* style,
{
sanitize_size(window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Arrow (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
if (DETAIL("hscrollbar") || DETAIL("vscrollbar"))
@@ -474,7 +474,7 @@ draw_arrow(GtkStyle* style,
if (DETAIL("arrow"))
{
GdkPixbuf *gpix;
- GtkWidget* parent;
+ GtkWidget* tqparent;
if (gdk_window_is_viewable(gtk_widget_get_parent_window(widget)))
{
gpix = gdk_pixbuf_get_from_drawable(NULL, gtk_widget_get_parent_window(widget),NULL, x, y, 0, 0, width, height);
@@ -482,8 +482,8 @@ draw_arrow(GtkStyle* style,
g_object_unref(gpix);
}
- parent = gtk_widget_get_parent(widget);
- drawArrow(window,style, GTK_WIDGET_STATE(parent), arrow_type, x, y, width, height);
+ tqparent = gtk_widget_get_parent(widget);
+ drawArrow(window,style, GTK_WIDGET_STATE(tqparent), arrow_type, x, y, width, height);
return;
}
/* if (DETAIL("menuitem"))
@@ -531,7 +531,7 @@ draw_arrow(GtkStyle* style,
ay = y;
aw = width;
ah = height;
- calculate_arrow_geometry (arrow_type, &ax, &ay, &aw, &ah);
+ calculate_arrow_tqgeometry (arrow_type, &ax, &ay, &aw, &ah);
half_width = width / 2;
half_height = height / 2;
@@ -615,7 +615,7 @@ draw_box(GtkStyle * style,
int nbpages;
sanitize_size(window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Box (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);
if (GTK_IS_SCROLLBAR(widget))
@@ -641,7 +641,7 @@ draw_box(GtkStyle * style,
if (DETAIL("menubar"))
{
if (openOfficeFix == 1)
- parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ tqparent_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)
- parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ tqparent_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 */
@@ -700,11 +700,11 @@ draw_box(GtkStyle * style,
}
if (DETAIL("button"))
{
- GtkWidget *parent;
+ GtkWidget *tqparent;
int toolbutton = 0;
- parent = gtk_widget_get_parent(widget);
+ tqparent = gtk_widget_get_parent(widget);
- if (parent && (GTK_IS_CLIST(parent) || GTK_IS_LIST(parent) || GTK_IS_TREE_VIEW(parent)))
+ if (tqparent && (GTK_IS_CLIST(tqparent) || GTK_IS_LIST(tqparent) || GTK_IS_TREE_VIEW(tqparent)))
{
drawListHeader(window,style,state_type,x,y,width,height);
return;
@@ -714,12 +714,12 @@ draw_box(GtkStyle * style,
* toolbar in gtk */
while (1)
{
- if (GTK_IS_WIDGET(parent))
+ if (GTK_IS_WIDGET(tqparent))
{
#ifdef HAVE_BONOBO
- if (GTK_IS_TOOLBAR(parent) || BONOBO_IS_UI_TOOLBAR(parent))
+ if (GTK_IS_TOOLBAR(tqparent) || BONOBO_IS_UI_TOOLBAR(tqparent))
#else
- if (GTK_IS_TOOLBAR(parent))
+ if (GTK_IS_TOOLBAR(tqparent))
#endif
{
toolbutton = 1;
@@ -728,10 +728,10 @@ draw_box(GtkStyle * style,
}
else
break;
- parent = gtk_widget_get_parent(parent);
+ tqparent = gtk_widget_get_parent(tqparent);
}
- parent = gtk_widget_get_parent(widget);
+ tqparent = gtk_widget_get_parent(widget);
if (toolbutton)
drawToolButton(window,style,state_type,x,y,width,height);
@@ -744,9 +744,9 @@ draw_box(GtkStyle * style,
int defaultButton = GTK_WIDGET_HAS_FOCUS(widget);
GtkWindow* toplevel;
- if (isBaghira && GTK_IS_BOX(parent) && (g_list_length(GTK_BOX(parent)->children) == 2))
+ if (isBaghira && GTK_IS_BOX(tqparent) && (g_list_length(GTK_BOX(tqparent)->children) == 2))
{
- child1 = g_list_first((GTK_BOX(parent)->children));
+ child1 = g_list_first((GTK_BOX(tqparent)->children));
child = ((GtkBoxChild *)child1->data)->widget;
if (GTK_IS_ENTRY(child))
{
@@ -754,7 +754,7 @@ draw_box(GtkStyle * style,
return;
}
- child1 = g_list_last((GTK_BOX(parent)->children));
+ child1 = g_list_last((GTK_BOX(tqparent)->children));
child = ((GtkBoxChild *)child1->data)->widget;
if (GTK_IS_ENTRY(child))
{
@@ -781,9 +781,9 @@ draw_box(GtkStyle * style,
/* THIS IS WHAT WORKS NOW --
Tabs and tabbarbase will be drawn properly according to the QT style
But the tabs won't be aligned according to QT. GTK+ does not have
- an option for alignment of tabs. So if were to do this not only do we have to
- calculate the x,y position of the tab ourselves, which is difficult in Qt unless
- we are displaying the tab (can be done by subclassing QTabBar/QTabWidget)
+ an option for tqalignment of tabs. So if were to do this not only do we have to
+ calculate the x,y position of the tab ourselves, which is difficult in TQt unless
+ we are displaying the tab (can be done by subclassing TQTabBar/TQTabWidget)
but also have to position the tab bar label ourselves in gtk.
*/
@@ -811,7 +811,7 @@ draw_box(GtkStyle * style,
if (DETAIL("toolbar"))
{
if (openOfficeFix == 1)
- parent_class->draw_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
+ tqparent_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;
@@ -852,24 +852,24 @@ draw_flat_box(GtkStyle * style,
{
sanitize_size(window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Flat Box (%d,%d,%d,%d) Widget: %s Detail: %s %d %d\n",x,y,width,height,gtk_widget_get_name(widget),detail, state_type, GTK_STATE_SELECTED);
if (DETAIL("tooltip"))
{
GdkColor tooltipColor;
GdkGCValues gc_values;
- GdkGCValuesMask gc_values_mask;
+ GdkGCValuesMask gc_values_tqmask;
GdkGC* tooltipGc;
tooltipColor.red = 255*257;
tooltipColor.green = 255*257;
tooltipColor.blue = 220*257;
gdk_colormap_alloc_color(style->colormap, &tooltipColor, FALSE, TRUE);
- gc_values_mask = GDK_GC_FOREGROUND;
+ gc_values_tqmask = GDK_GC_FOREGROUND;
gc_values.foreground = tooltipColor;
- tooltipGc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ tooltipGc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gdk_draw_rectangle(window, tooltipGc, TRUE, x, y, width, height);
gdk_draw_rectangle(window, style->black_gc, FALSE, x, y, width - 1, height - 1);
@@ -908,7 +908,7 @@ draw_check(GtkStyle * style,
gint width,
gint height)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Check (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
if (GTK_IS_MENU_ITEM(widget))
@@ -945,7 +945,7 @@ draw_option(GtkStyle * style,
gint width,
gint height)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Option (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
if (gdk_window_is_viewable(gtk_widget_get_parent_window(widget)))
@@ -979,7 +979,7 @@ draw_tab(GtkStyle * style,
gint width,
gint height)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Tab (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
gtk_paint_box(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
@@ -1011,7 +1011,7 @@ draw_shadow_gap(GtkStyle * style,
sanitize_size (window, &width, &height);
shadow_type = get_shadow_type (style, detail, shadow_type);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Shadow_Gap (%d,%d,%d,%d) Widget: %s Detail: %s\n",x,y,width,height,gtk_widget_get_name(widget),detail);
switch (shadow_type) {
@@ -1154,7 +1154,7 @@ draw_box_gap(GtkStyle* style,
if (width<0 || height<0) return; /* Eclipse really can be this stupid! */
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Box_gap (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
if (DETAIL("notebook"))
@@ -1181,7 +1181,7 @@ draw_extension(GtkStyle * style,
sanitize_size (window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Extension (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
gtk_paint_box(style, window, state_type, shadow_type, area, widget, detail,
@@ -1201,14 +1201,14 @@ draw_focus (GtkStyle *style,
gint width,
gint height)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Focus Rect (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
- GtkWidget* parent = gtk_widget_get_parent(widget);
+ GtkWidget* tqparent = gtk_widget_get_parent(widget);
if (GTK_IS_CHECK_BUTTON(widget) ||
GTK_IS_RADIO_BUTTON(widget) ||
- (parent && (GTK_IS_CLIST(parent) || GTK_IS_LIST(parent) || GTK_IS_TREE_VIEW(parent))))
+ (tqparent && (GTK_IS_CLIST(tqparent) || GTK_IS_LIST(tqparent) || GTK_IS_TREE_VIEW(tqparent))))
{
drawFocusRect(window, style, x, y, width, height);
}
@@ -1229,7 +1229,7 @@ draw_slider(GtkStyle * style,
gint height,
GtkOrientation orientation)
{
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Slider (%d,%d,%d,%d) Widget: %s Detail: %s\n", x, y, width, height,gtk_widget_get_name(widget),detail);
if (DETAIL("slider"))
@@ -1237,11 +1237,11 @@ draw_slider(GtkStyle * style,
GtkAdjustment* adj = gtk_range_get_adjustment(GTK_RANGE(widget));
int widgetX, widgetY;
- GtkWidget* parent = widget;
- while (gtk_widget_get_parent(parent) != NULL)
- parent = gtk_widget_get_parent(parent);
+ GtkWidget* tqparent = widget;
+ while (gtk_widget_get_parent(tqparent) != NULL)
+ tqparent = gtk_widget_get_parent(tqparent);
- gtk_widget_translate_coordinates(widget, parent, 0, 0, &widgetX, &widgetY);
+ gtk_widget_translate_coordinates(widget, tqparent, 0, 0, &widgetX, &widgetY);
if (orientation == GTK_ORIENTATION_VERTICAL)
drawScrollBarSlider(window, style, state_type, orientation, adj, x-1, y, width+2, height, y-widgetY, widget->allocation.height);
@@ -1270,7 +1270,7 @@ draw_handle(GtkStyle * style,
sanitize_size(window, &width, &height);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Handle (%d,%d,%d,%d) Widget: %s Detail: %s \n",x,y,width,height,gtk_widget_get_name(widget),detail, state_type);
drawSplitter(window,style,state_type,orientation,x,y,width,height);
@@ -1287,33 +1287,33 @@ void draw_layout (GtkStyle *style,
const gchar *detail,
gint x,
gint y,
- PangoLayout *layout)
+ PangoLayout *tqlayout)
{
GdkColor color;
GdkGC *gc;
getTextColor(&color, state_type);
- if (gtkQtDebug)
+ if (gtkTQtDebug)
printf("Layout (%d,%d) Widget: %s Detail: %s %d \n",x,y,gtk_widget_get_name(widget),detail, state_type);
if (DETAIL("accellabel") || DETAIL("label") || DETAIL("cellrenderertext"))
{
- GtkWidget* parent = gtk_widget_get_parent(widget);
- GtkWidget* parent1 = gtk_widget_get_parent(parent);
+ GtkWidget* tqparent = gtk_widget_get_parent(widget);
+ GtkWidget* tqparent1 = gtk_widget_get_parent(tqparent);
- /* printf("parent's names are %s->%s->%s\n", gtk_widget_get_name(widget), gtk_widget_get_name(parent), gtk_widget_get_name(parent1)); */
+ /* printf("tqparent's names are %s->%s->%s\n", gtk_widget_get_name(widget), gtk_widget_get_name(tqparent), gtk_widget_get_name(tqparent1)); */
/* In baghira -- even highlight the menu bar items */
- if ((GTK_IS_MENU_ITEM(parent) && (!GTK_IS_MENU_BAR(parent1) || isBaghira || isPolyester)) || GTK_IS_TREE_VIEW(widget))
+ if ((GTK_IS_MENU_ITEM(tqparent) && (!GTK_IS_MENU_BAR(tqparent1) || isBaghira || isPolyester)) || GTK_IS_TREE_VIEW(widget))
{
- PangoAttrList *layoutattr;
+ PangoAttrList *tqlayoutattr;
const gchar *text;
gint text_length = 0;
gint text_bytelen = 0;
- text = pango_layout_get_text (layout);
+ text = pango_layout_get_text (tqlayout);
if (text != 0)
{
PangoAttribute *textcolorattr;
@@ -1324,19 +1324,19 @@ void draw_layout (GtkStyle *style,
textcolorattr->start_index = 0;
textcolorattr->end_index = text_bytelen;
- layoutattr = pango_layout_get_attributes(layout);
+ tqlayoutattr = pango_layout_get_attributes(tqlayout);
- if (layoutattr == NULL)
+ if (tqlayoutattr == NULL)
{
- layoutattr = pango_attr_list_new();
- pango_attr_list_insert(layoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(layout,layoutattr);
- pango_attr_list_unref(layoutattr);
+ 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);
}
else
{
- pango_attr_list_change(layoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(layout,layoutattr);
+ pango_attr_list_change(tqlayoutattr, pango_attribute_copy(textcolorattr));
+ pango_layout_set_attributes(tqlayout,tqlayoutattr);
}
pango_attribute_destroy(textcolorattr);
}
@@ -1355,13 +1355,13 @@ void draw_layout (GtkStyle *style,
if (state_type == GTK_STATE_INSENSITIVE)
{
PangoLayout *ins;
- ins = get_insensitive_layout (window, layout);
+ ins = get_insensitive_layout (window, tqlayout);
gdk_draw_layout (window, gc, x, y, ins);
g_object_unref (ins);
}
else
{
- gdk_draw_layout (window, gc, x, y, layout);
+ gdk_draw_layout (window, gc, x, y, tqlayout);
}
if (area)
@@ -1390,7 +1390,7 @@ range_new (guint start,
static PangoLayout*
get_insensitive_layout (GdkDrawable *drawable,
- PangoLayout *layout)
+ PangoLayout *tqlayout)
{
GSList *embossed_ranges = NULL;
GSList *stippled_ranges = NULL;
@@ -1400,7 +1400,7 @@ get_insensitive_layout (GdkDrawable *drawable,
PangoAttrList *attrs;
GdkBitmap *stipple = NULL;
- iter = pango_layout_get_iter (layout);
+ iter = pango_layout_get_iter (tqlayout);
do
{
@@ -1447,7 +1447,7 @@ get_insensitive_layout (GdkDrawable *drawable,
pango_layout_iter_free (iter);
- new_layout = pango_layout_copy (layout);
+ new_layout = pango_layout_copy (tqlayout);
attrs = pango_layout_get_attributes (new_layout);
@@ -1526,25 +1526,25 @@ qtengine_style_register_type (GTypeModule *module)
{
static const GTypeInfo object_info =
{
- sizeof (QtEngineStyleClass),
+ sizeof (TQtEngineStyleClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) qtengine_style_class_init,
NULL, /* class_finalize */
NULL, /* class_data */
- sizeof (QtEngineStyle),
+ sizeof (TQtEngineStyle),
0, /* n_preallocs */
(GInstanceInitFunc) qtengine_style_init,
};
qtengine_type_style = g_type_module_register_type (module,
GTK_TYPE_STYLE,
- "QtEngineStyle",
+ "TQtEngineStyle",
&object_info, 0);
}
static void
-qtengine_style_init (QtEngineStyle *style)
+qtengine_style_init (TQtEngineStyle *style)
{
}
@@ -1743,7 +1743,7 @@ static void
gtk_style_real_realize (GtkStyle *style)
{
GdkGCValues gc_values;
- GdkGCValuesMask gc_values_mask;
+ GdkGCValuesMask gc_values_tqmask;
gint i;
@@ -1771,13 +1771,13 @@ gtk_style_real_realize (GtkStyle *style)
style->white.blue = 0xffff;
gdk_colormap_alloc_color (style->colormap, &style->white, FALSE, TRUE);
- gc_values_mask = GDK_GC_FOREGROUND;
+ gc_values_tqmask = GDK_GC_FOREGROUND;
gc_values.foreground = style->black;
- style->black_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->black_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->white;
- style->white_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->white_gc = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
for (i = 0; i < 5; i++)
{
@@ -1808,28 +1808,28 @@ gtk_style_real_realize (GtkStyle *style)
style->text_aa[i].red, style->text_aa[i].green, style->text_aa[i].blue);
gc_values.foreground = style->fg[i];
- style->fg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->fg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->bg[i];
- style->bg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->bg_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->light[i];
- style->light_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->light_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->dark[i];
- style->dark_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->dark_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->mid[i];
- style->mid_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->mid_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->text[i];
- style->text_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->text_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->base[i];
- style->base_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->base_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
gc_values.foreground = style->text_aa[i];
- style->text_aa_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_mask);
+ style->text_aa_gc[i] = (GdkGC*) gtk_gc_get (style->depth, style->colormap, &gc_values, gc_values_tqmask);
}
}
@@ -1845,15 +1845,15 @@ static void
set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type)
{
GdkPixmap *pixmap;
- gint parent_relative;
+ gint tqparent_relative;
GdkPixmap* pix_test;
/* What kind of horrible person would store a pointer to a widget here... */
- void* parent = 0;
- gdk_window_get_user_data(window, &parent);
- if (GTK_IS_MENU((GtkWidget*) parent))
+ void* tqparent = 0;
+ gdk_window_get_user_data(window, &tqparent);
+ if (GTK_IS_MENU((GtkWidget*) tqparent))
{
- pix_test = QTENGINE_STYLE(style)->menuBackground;
+ pix_test = TQTENGINE_STYLE(style)->menuBackground;
}
else
pix_test = style->bg_pixmap[state_type];
@@ -1863,28 +1863,28 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type)
if (pix_test == (GdkPixmap*) GDK_PARENT_RELATIVE)
{
pixmap = NULL;
- parent_relative = TRUE;
+ tqparent_relative = TRUE;
}
else
{
pixmap = pix_test;
- parent_relative = FALSE;
+ tqparent_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, parent_relative);
+ gdk_window_set_back_pixmap (window, pixmap, tqparent_relative);
}
else
gdk_window_set_background (window, &style->bg[state_type]);
}
static void
-qtengine_style_class_init (QtEngineStyleClass *klass)
+qtengine_style_class_init (TQtEngineStyleClass *klass)
{
GtkStyleClass *style_class = GTK_STYLE_CLASS (klass);
- parent_class = g_type_class_peek_parent (klass);
+ tqparent_class = g_type_class_peek_parent (klass);
style_class->draw_hline = draw_hline;
style_class->draw_vline = draw_vline;