[gtk-theme-engine-clearlooks] Remove unused variables.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Remove unused variables.
- Date: Mon, 6 Dec 2010 21:23:28 +0000 (UTC)
commit 55753261a4538e5fe61b95d254770b724cf5e979
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 30 03:13:18 2010 +0100
Remove unused variables.
src/clearlooks_engine.c | 44 +-------------------------------------------
1 files changed, 1 insertions(+), 43 deletions(-)
---
diff --git a/src/clearlooks_engine.c b/src/clearlooks_engine.c
index bcf72cc..a216135 100644
--- a/src/clearlooks_engine.c
+++ b/src/clearlooks_engine.c
@@ -196,7 +196,6 @@ clearlooks_engine_render_frame_gap (GtkThemingEngine *engine,
if (gtk_theming_engine_has_class (engine, "notebook"))
{
FrameParameters frame;
- gboolean start, end;
CairoColor *bg_color;
GtkStateFlags state;
gint radius;
@@ -523,18 +522,14 @@ clearlooks_engine_render_frame (GtkThemingEngine *engine,
else if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_BUTTON) &&
gtk_theming_engine_has_class (engine, GTK_STYLE_REGION_COLUMN_HEADER))
{
- WidgetParameters params;
ListViewHeaderParameters header;
gint columns, column_index;
- gboolean resizable = TRUE;
/* XXX: This makes unknown treeview header "middle", in need for something nicer */
columns = 3;
column_index = 1;
- params.corners = CR_CORNER_NONE;
-
#if 0
if (GE_IS_TREE_VIEW (gtk_widget_get_parent (widget)))
{
@@ -559,8 +554,6 @@ clearlooks_engine_render_frame (GtkThemingEngine *engine,
}
else if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_BUTTON))
{
- WidgetParameters params;
-
#if 0
if (CHECK_HINT (GE_HINT_COMBOBOX_ENTRY))
{
@@ -710,7 +703,6 @@ clearlooks_engine_render_frame (GtkThemingEngine *engine,
}
else if (gtk_theming_engine_has_class (engine, "progressbar"))
{
- WidgetParameters params;
ProgressBarParameters progressbar;
gdouble elapsed = 0.0;
@@ -1038,15 +1030,12 @@ clearlooks_engine_render_slider (GtkThemingEngine *engine,
if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_SLIDER))
{
- WidgetParameters params;
ScrollBarParameters scrollbar;
gboolean colorize_scrollbar;
CairoColor *scrollbar_color;
ClearlooksStyle style;
GtkStateFlags state;
- params.corners = CR_CORNER_NONE;
-
scrollbar.has_color = FALSE;
scrollbar.horizontal = (orientation == GTK_ORIENTATION_HORIZONTAL);
scrollbar.junction = 0; //clearlooks_scrollbar_get_junction (widget);
@@ -1110,7 +1099,6 @@ clearlooks_engine_render_option (GtkThemingEngine *engine,
gdouble height)
{
ClearlooksStyleFunctions *style_functions;
- WidgetParameters params;
CheckboxParameters checkbox;
GE_CAIRO_INIT
@@ -1132,13 +1120,10 @@ clearlooks_engine_render_check (GtkThemingEngine *engine,
gdouble height)
{
ClearlooksStyleFunctions *style_functions;
- WidgetParameters params;
CheckboxParameters checkbox;
GE_CAIRO_INIT
- params.corners = CR_CORNER_ALL;
-
checkbox.in_cell = gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_CELL);
checkbox.in_menu = gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_MENU);
@@ -1211,8 +1196,6 @@ clearlooks_engine_render_arrow (GtkThemingEngine *engine,
gdouble size)
{
ClearlooksStyleFunctions *style_functions;
- ClearlooksEngine *clearlooks_engine = CLEARLOOKS_ENGINE (engine);
- WidgetParameters params;
ArrowParameters arrow;
GE_CAIRO_INIT;
@@ -1509,7 +1492,6 @@ clearlooks_engine_render_layout (GtkThemingEngine *engine,
if (state == 0 &&
gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_ACCELERATOR)) {
- ClearlooksEngine *clearlooks_engine = CLEARLOOKS_ENGINE (engine);
CairoColor *bg_color, *color, mix;
gdouble accel_label_shade;
@@ -1637,31 +1619,7 @@ clearlooks_engine_init (ClearlooksEngine *clearlooks_engine)
clearlooks_register_style_gnome3 (&clearlooks_engine->style_functions[CLEARLOOKS_STYLE_GNOME3],
&clearlooks_engine->style_constants[CLEARLOOKS_STYLE_GNOME3]);
-#if 0
- clearlooks_register_style_classic (&klass->style_functions[CL_STYLE_CLASSIC],
- &klass->style_constants[CL_STYLE_CLASSIC]);
-
- klass->style_functions[CL_STYLE_GLOSSY] = klass->style_functions[CL_STYLE_CLASSIC];
- klass->style_constants[CL_STYLE_GLOSSY] = klass->style_constants[CL_STYLE_CLASSIC];
- clearlooks_register_style_glossy (&klass->style_functions[CL_STYLE_GLOSSY],
- &klass->style_constants[CL_STYLE_GLOSSY]);
-
- klass->style_functions[CL_STYLE_INVERTED] = klass->style_functions[CL_STYLE_CLASSIC];
- klass->style_constants[CL_STYLE_INVERTED] = klass->style_constants[CL_STYLE_CLASSIC];
- clearlooks_register_style_inverted (&klass->style_functions[CL_STYLE_INVERTED],
- &klass->style_constants[CL_STYLE_INVERTED]);
-
- klass->style_functions[CL_STYLE_GUMMY] = klass->style_functions[CL_STYLE_CLASSIC];
- klass->style_constants[CL_STYLE_GUMMY] = klass->style_constants[CL_STYLE_CLASSIC];
- clearlooks_register_style_gummy (&klass->style_functions[CL_STYLE_GUMMY],
- &klass->style_constants[CL_STYLE_GUMMY]);
-
- klass->style_functions[CL_STYLE_GNOME3] = klass->style_functions[CL_STYLE_CLASSIC];
- klass->style_constants[CL_STYLE_GNOME3] = klass->style_constants[CL_STYLE_CLASSIC];
- clearlooks_register_style_gnome3 (&klass->style_functions[CL_STYLE_GNOME3],
- &klass->style_constants[CL_STYLE_GNOME3]);
-
-#endif
+ /* FIXME: Register other skins as they get ported to GtkThemingEngine */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]