[gthumb: 6/20] Stripping unused code from gedit-message-area
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 6/20] Stripping unused code from gedit-message-area
- Date: Thu, 12 May 2011 20:22:20 +0000 (UTC)
commit fbe716a622ddcbe482fe076b043416e049b02b60
Author: Lincoln de Sousa <lincoln comum org>
Date: Sat May 7 02:53:29 2011 -0300
Stripping unused code from gedit-message-area
Both `style_set()' and `expose_event()' virtual methods were not being used and
it's senseless to port the expose_event to a gtk3 `draw()' method if it's empty.
gthumb/gedit-message-area.c | 60 -------------------------------------------
1 files changed, 0 insertions(+), 60 deletions(-)
---
diff --git a/gthumb/gedit-message-area.c b/gthumb/gedit-message-area.c
index 364825b..5565d62 100644
--- a/gthumb/gedit-message-area.c
+++ b/gthumb/gedit-message-area.c
@@ -139,75 +139,15 @@ gedit_message_area_close (GeditMessageArea *message_area)
GTK_RESPONSE_CANCEL);
}
-
-/*
-static void
-gedit_message_area_style_set (GtkWidget *widget,
- GtkStyle *prev_style)
-{
- GeditMessageArea *message_area = GEDIT_MESSAGE_AREA (widget);
- GtkWidget *window;
- GtkStyle *style;
-
- if (message_area->priv->changing_style)
- return;
-
- // This is a hack needed to use the tooltip background color
- window = gtk_window_new (GTK_WINDOW_POPUP);
- gtk_widget_set_name (window, "gtk-tooltip");
- gtk_widget_ensure_style (window);
- style = gtk_widget_get_style (window);
-
- message_area->priv->changing_style = TRUE;
- gtk_widget_set_style (GTK_WIDGET (message_area), style);
- message_area->priv->changing_style = FALSE;
-
- gtk_widget_destroy (window);
-
- gtk_widget_queue_draw (GTK_WIDGET (message_area));
-}
-*/
-
-
-static gboolean
-gedit_message_area_expose (GtkWidget *widget,
- GdkEventExpose *event)
-{
- /*
- gtk_paint_box (widget->style,
- widget->window,
- GTK_STATE_NORMAL,
- GTK_SHADOW_OUT,
- NULL,
- widget,
- "infobar",
- widget->allocation.x,
- widget->allocation.y,
- widget->allocation.width,
- widget->allocation.height);
- */
-
- if (GTK_WIDGET_CLASS (gedit_message_area_parent_class)->expose_event)
- GTK_WIDGET_CLASS (gedit_message_area_parent_class)->expose_event (widget, event);
-
- return FALSE;
-}
-
-
static void
gedit_message_area_class_init (GeditMessageAreaClass *klass)
{
GObjectClass *object_class;
- GtkWidgetClass *widget_class;
GtkBindingSet *binding_set;
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gedit_message_area_finalize;
- widget_class = GTK_WIDGET_CLASS (klass);
- /*widget_class->style_set = gedit_message_area_style_set;*/
- widget_class->expose_event = gedit_message_area_expose;
-
klass->close = gedit_message_area_close;
g_type_class_add_private (object_class, sizeof(GeditMessageAreaPrivate));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]