summaryrefslogtreecommitdiffstats
path: root/src/qt_theme_draw.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-15 02:07:16 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-15 02:07:16 +0000
commit2ce5b382990085bcce1ba3ec48536ae16fa2e4bc (patch)
tree68a0749193849cd086bc7aa41bb7cbd4a0914004 /src/qt_theme_draw.c
parent84c9dfc73d852739fa9e7ce9f83f536f146a0e2b (diff)
downloadgtk-qt-engine-2ce5b382990085bcce1ba3ec48536ae16fa2e4bc.tar.gz
gtk-qt-engine-2ce5b382990085bcce1ba3ec48536ae16fa2e4bc.zip
Clean up gtk-qt-engine a bit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1258949 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/qt_theme_draw.c')
-rw-r--r--src/qt_theme_draw.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index 53faf7f..b95bcda 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -609,8 +609,9 @@ draw_box(GtkStyle * style,
gint width,
gint height)
{
- GList *child1;
+ GList *child_list;
GtkWidget *child;
+
GtkNotebook *nb;
int nbpages;
sanitize_size(window, &width, &height);
@@ -746,16 +747,16 @@ draw_box(GtkStyle * style,
if (isBaghira && GTK_IS_BOX(parent) && (g_list_length(GTK_BOX(parent)->children) == 2))
{
- child1 = g_list_first((GTK_BOX(parent)->children));
- child = ((GtkBoxChild *)child1->data)->widget;
+ child_list = g_list_first((GTK_BOX(parent)->children));
+ child = (GtkWidget *)child_list->data;
if (GTK_IS_ENTRY(child))
{
drawSquareButton(window,style,state_type,x,y,width,height);
return;
}
- child1 = g_list_last((GTK_BOX(parent)->children));
- child = ((GtkBoxChild *)child1->data)->widget;
+ child_list = g_list_last((GTK_BOX(parent)->children));
+ child = ((GtkBoxChild *)child_list->data)->widget;
if (GTK_IS_ENTRY(child))
{
drawSquareButton(window,style,state_type,x,y,width,height);