summaryrefslogtreecommitdiffstats
path: root/src/qt_theme_draw.c
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:29:43 -0600
commit7225c815f485e09d2d967c4e97913cf676029103 (patch)
tree50168512e2b60cccba7e095c38b57002585bcf9a /src/qt_theme_draw.c
parentc0999e136c4c2e9b62369719c59c3d250782865e (diff)
downloadgtk-qt-engine-7225c815f485e09d2d967c4e97913cf676029103.tar.gz
gtk-qt-engine-7225c815f485e09d2d967c4e97913cf676029103.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/qt_theme_draw.c')
-rw-r--r--src/qt_theme_draw.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index 885a836..d337014 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -41,7 +41,7 @@ static GtkStyleClass *parent_class = NULL;
static PangoLayout*
get_insensitive_layout (GdkDrawable *drawable,
- PangoLayout *tqlayout);
+ PangoLayout *layout);
static GtkShadowType
@@ -578,7 +578,7 @@ draw_arrow(GtkStyle* style,
ay = y;
aw = width;
ah = height;
- calculate_arrow_tqgeometry (arrow_type, &ax, &ay, &aw, &ah);
+ calculate_arrow_geometry (arrow_type, &ax, &ay, &aw, &ah);
half_width = width / 2;
half_height = height / 2;
@@ -844,7 +844,7 @@ 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 tqalignment of tabs. So if were to do this not only do we have to
+ 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 TQTabBar/TQTabWidget)
but also have to position the tab bar label ourselves in gtk.
@@ -1351,7 +1351,7 @@ void draw_layout (GtkStyle *style,
const gchar *detail,
gint x,
gint y,
- PangoLayout *tqlayout)
+ PangoLayout *layout)
{
gboolean paint_layout = TRUE;
@@ -1395,7 +1395,7 @@ void draw_layout (GtkStyle *style,
const gchar *text;
gint text_length = 0;
gint text_bytelen = 0;
- text = pango_layout_get_text (tqlayout);
+ text = pango_layout_get_text (layout);
if (text != 0)
{
PangoAttribute *textcolorattr;
@@ -1406,19 +1406,19 @@ void draw_layout (GtkStyle *style,
textcolorattr->start_index = 0;
textcolorattr->end_index = text_bytelen;
- layoutattr = pango_layout_get_attributes(tqlayout);
+ layoutattr = pango_layout_get_attributes(layout);
if (layoutattr == NULL)
{
layoutattr = pango_attr_list_new();
pango_attr_list_insert(layoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(tqlayout,layoutattr);
+ pango_layout_set_attributes(layout,layoutattr);
pango_attr_list_unref(layoutattr);
}
else
{
pango_attr_list_change(layoutattr, pango_attribute_copy(textcolorattr));
- pango_layout_set_attributes(tqlayout,layoutattr);
+ pango_layout_set_attributes(layout,layoutattr);
}
pango_attribute_destroy(textcolorattr);
}
@@ -1437,13 +1437,13 @@ void draw_layout (GtkStyle *style,
if (state_type == GTK_STATE_INSENSITIVE)
{
PangoLayout *ins;
- ins = get_insensitive_layout (window, tqlayout);
+ ins = get_insensitive_layout (window, layout);
gdk_draw_layout (window, gc, x, y, ins);
g_object_unref (ins);
}
else
{
- gdk_draw_layout (window, gc, x, y, tqlayout);
+ gdk_draw_layout (window, gc, x, y, layout);
}
if (area)
@@ -1472,7 +1472,7 @@ range_new (guint start,
static PangoLayout*
get_insensitive_layout (GdkDrawable *drawable,
- PangoLayout *tqlayout)
+ PangoLayout *layout)
{
GSList *embossed_ranges = NULL;
GSList *stippled_ranges = NULL;
@@ -1482,7 +1482,7 @@ get_insensitive_layout (GdkDrawable *drawable,
PangoAttrList *attrs;
GdkBitmap *stipple = NULL;
- iter = pango_layout_get_iter (tqlayout);
+ iter = pango_layout_get_iter (layout);
do
{
@@ -1529,7 +1529,7 @@ get_insensitive_layout (GdkDrawable *drawable,
pango_layout_iter_free (iter);
- new_layout = pango_layout_copy (tqlayout);
+ new_layout = pango_layout_copy (layout);
attrs = pango_layout_get_attributes (new_layout);