[gtk-engines/gnome3] Remove GtkCombo special-casing
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-engines/gnome3] Remove GtkCombo special-casing
- Date: Wed, 12 May 2010 15:49:06 +0000 (UTC)
commit aaa9debf285198ec11d1a693ffbdbc52de562a33
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 12 16:48:29 2010 +0100
Remove GtkCombo special-casing
Fixes build for Glide and Redmond engines
engines/glide/src/glide_gtk2_drawing.c | 87 ----------------------------
engines/redmond/src/redmond_gtk2_drawing.c | 84 ---------------------------
2 files changed, 0 insertions(+), 171 deletions(-)
---
diff --git a/engines/glide/src/glide_gtk2_drawing.c b/engines/glide/src/glide_gtk2_drawing.c
index b420a44..53d56c4 100644
--- a/engines/glide/src/glide_gtk2_drawing.c
+++ b/engines/glide/src/glide_gtk2_drawing.c
@@ -681,56 +681,6 @@ glide_draw_combobox_button (GtkStyle * style,
area, widget, "combo_box_entry", x - thick*2 - focus - focus_padding, y + focus - focus_padding,
width + thick*2 + focus_padding*2, height - focus*2 + focus_padding*2);
}
-#ifndef GTK_DISABLE_DEPRECATED
- else if (ge_is_combo(widget))
- {
- GtkWidget *entry = widget;
-
- if (GE_IS_WIDGET(widget) && GE_IS_WIDGET(widget->parent) && GE_IS_ENTRY(GTK_COMBO (widget->parent)->entry))
- {
- entry = GTK_COMBO (widget->parent)->entry;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
- else if (GE_IS_WIDGET(widget->parent))
- {
- entry = widget->parent;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
-
- parent_state = GTK_STATE_NORMAL;
-
- gtk_paint_flat_box (parent_style, window, parent_state,
- GTK_SHADOW_NONE, area, entry, "entry_bg", x - 2,
- y, width + 2, height);
-
- {
- GdkRectangle shadow, clip;
-
- shadow.x = x - 2;
- shadow.y = y;
- shadow.width = width + 2;
- shadow.height = height;
-
-/* #warning FIXME - gdk_rectangle_intersect*/
- if (area)
- gdk_rectangle_intersect(area, &shadow, &clip);
- else
- clip = shadow;
-
- gtk_paint_shadow (parent_style, window, parent_state, GTK_SHADOW_IN,
- &clip, entry, "combo_box_entry", x - thick*2 - focus - focus_padding, y + focus - focus_padding,
- width + thick*2 + focus_padding*2, height - focus*2 + focus_padding*2);
- }
- }
-#else
-#warning Disabling GtkCombo support because GTK_DiSABLE_DEPRECATED is enabled.
-#endif /* GTK_DISABLE_DEPRECATED */
else
{
GtkWidget *parent = widget;
@@ -823,43 +773,6 @@ glide_draw_combobox_button (GtkStyle * style,
x + focus - focus_padding, y + focus - focus_padding,
width + thick*2 - focus + focus_padding*2, height - focus*2 + focus_padding*2);
}
-#ifndef GTK_DISABLE_DEPRECATED
- else if (ge_is_combo(widget))
- {
- GtkWidget *entry = widget;
-
- if (GE_IS_WIDGET(widget) && GE_IS_WIDGET(widget->parent) && GE_IS_ENTRY(GTK_COMBO (widget->parent)->entry))
- {
- entry = GTK_COMBO (widget->parent)->entry;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
- else if (GE_IS_WIDGET(widget->parent))
- {
- entry = widget->parent;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
-
- if (parent_state != GTK_STATE_INSENSITIVE)
- parent_state = GTK_STATE_NORMAL;
-
- gtk_paint_flat_box (parent_style, window, parent_state,
- GTK_SHADOW_NONE, area, entry, "entry_bg",
- x + focus - focus_padding, y + focus - focus_padding,
- width + thick*2 - focus + focus_padding*2, height - focus*2 + focus_padding*2);
- gtk_paint_shadow (parent_style, window, parent_state, GTK_SHADOW_IN,
- area, entry, "combo_box_entry",
- x + focus - focus_padding, y + focus - focus_padding,
- width + thick*2 - focus + focus_padding*2, height - focus*2 + focus_padding*2);
- }
-#else
-#warning Disabling GtkCombo support because GTK_DiSABLE_DEPRECATED is enabled.
-#endif /* GTK_DISABLE_DEPRECATED */
else
{
GtkWidget *parent = widget;
diff --git a/engines/redmond/src/redmond_gtk2_drawing.c b/engines/redmond/src/redmond_gtk2_drawing.c
index e064011..13ccc94 100644
--- a/engines/redmond/src/redmond_gtk2_drawing.c
+++ b/engines/redmond/src/redmond_gtk2_drawing.c
@@ -678,56 +678,6 @@ redmond_draw_combobox_button (GtkStyle * style,
gtk_paint_shadow (style, window, state_type, GTK_SHADOW_IN,
area, widget, "entry", x - 2, y, width, height);
}
-#ifndef GTK_DISABLE_DEPRECATED
- else if (ge_is_combo(widget))
- {
- GtkWidget *entry = widget;
-
- if (GE_IS_WIDGET(widget) && GE_IS_WIDGET(widget->parent) && GE_IS_ENTRY(GTK_COMBO (widget->parent)->entry))
- {
- entry = GTK_COMBO (widget->parent)->entry;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
- else
- if (GE_IS_WIDGET(widget->parent))
- {
- entry = widget->parent;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
-
- if (parent_state != GTK_STATE_INSENSITIVE)
- parent_state = GTK_STATE_NORMAL;
-
- gtk_paint_flat_box (parent_style, window, parent_state,
- GTK_SHADOW_NONE, area, entry, "entry_bg", x - 2,
- y, width + 2, height);
-
- {
- GdkRectangle shadow, clip;
-
- shadow.x = x - 2;
- shadow.y = y;
- shadow.width = width + 2;
- shadow.height = height;
-
- if (area)
- gdk_rectangle_intersect(area, &shadow, &clip);
- else
- clip = shadow;
-
- gtk_paint_shadow (parent_style, window, parent_state, GTK_SHADOW_IN,
- &clip, entry, "entry", x - 4, y, width + 2, height);
- }
- }
-#else
-#warning Disabling GtkCombo support because GTK_DiSABLE_DEPRECATED is enabled.
-#endif
else
{
GtkWidget *parent = widget;
@@ -796,40 +746,6 @@ redmond_draw_combobox_button (GtkStyle * style,
gtk_paint_shadow (style, window, state_type, GTK_SHADOW_IN,
area, widget, "entry", x + 2, y, width, height);
}
-#ifndef GTK_DISABLE_DEPRECATED
- else if (ge_is_combo(widget))
- {
- GtkWidget *entry = widget;
-
- if (GE_IS_WIDGET(widget) && GE_IS_WIDGET(widget->parent) && GE_IS_ENTRY(GTK_COMBO (widget->parent)->entry))
- {
- entry = GTK_COMBO (widget->parent)->entry;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
- else if (GE_IS_WIDGET(widget->parent))
- {
- entry = widget->parent;
- gtk_widget_ensure_style(entry);
-
- parent_style = entry->style;
- parent_state = entry->state;
- }
-
- if (parent_state != GTK_STATE_INSENSITIVE)
- parent_state = GTK_STATE_NORMAL;
-
- gtk_paint_flat_box (parent_style, window, parent_state,
- GTK_SHADOW_NONE, area, entry, "entry_bg", x + 2,
- y, width + 2, height);
- gtk_paint_shadow (parent_style, window, parent_state, GTK_SHADOW_IN,
- area, entry, "entry", x + 2, y, width, height);
- }
-#else
-#warning Disabling GtkCombo support because GTK_DiSABLE_DEPRECATED is enabled.
-#endif /* GTK_DISABLE_DEPRECATED */
else
{
GtkWidget *parent = widget;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]