aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2006-01-30 20:28:43 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-01-30 20:28:43 +0800
commitf8176cb325d4876c21ce36c6b0b26cd95571b9f3 (patch)
tree76f784449342eea836d58ad7da01f48b025304ba /widgets/text/e-text.c
parent4a4b322c39f2bccddd9b9f41dead3429dab80f57 (diff)
downloadgsoc2013-evolution-f8176cb325d4876c21ce36c6b0b26cd95571b9f3.tar.gz
gsoc2013-evolution-f8176cb325d4876c21ce36c6b0b26cd95571b9f3.tar.zst
gsoc2013-evolution-f8176cb325d4876c21ce36c6b0b26cd95571b9f3.zip
damned broken pipes! where's the plummer
svn path=/trunk/; revision=31372
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 6636c78f73..01b6807dde 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -654,7 +654,6 @@ e_text_set_property (GObject *object,
GdkColor color = { 0, 0, 0, 0, };
GdkColor *pcolor;
gboolean color_changed;
- int have_pixel;
gboolean needs_update = 0;
gboolean needs_reflow = 0;
@@ -663,7 +662,6 @@ e_text_set_property (GObject *object,
text = E_TEXT (object);
color_changed = FALSE;
- have_pixel = FALSE;
switch (prop_id) {
case PROP_MODEL:
@@ -1372,7 +1370,7 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
gdouble thisx = item->x1 - x;
gdouble thisy = item->y1 - y;
gdouble thiswidth, thisheight;
- GtkWidget *widget = GTK_WIDGET(item->canvas);
+ widget = GTK_WIDGET(item->canvas);
g_object_get(text,
"width", &thiswidth,
@@ -1399,7 +1397,6 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
}
}
if (text->draw_button) {
- GtkWidget *widget;
int xoff = item->x1 - x;
int yoff = item->y1 - y;
@@ -1892,7 +1889,7 @@ tooltip_event(GtkWidget *tooltip, GdkEvent *event, EText *text)
}
static gboolean
-tooltip_ungrab (GtkWidget *tooltip, GdkEventKey *event, EText *text)
+tooltip_ungrab (GtkWidget *tooltip, GdkEvent *event, EText *text)
{
gdk_keyboard_ungrab(GDK_CURRENT_TIME);
@@ -1945,11 +1942,11 @@ _do_tooltip (gpointer data)
cut_off = FALSE;
for ( i = 0; i < text->num_lines; i++ ) {
PangoLayoutLine *line = pango_layout_get_line (text->layout, i);
- PangoRectangle rect;
+ PangoRectangle pango_rect;
- pango_layout_line_get_pixel_extents (line, &rect, NULL);
+ pango_layout_line_get_pixel_extents (line, &pango_rect, NULL);
- if (rect.width > text->clip_width) {
+ if (pango_rect.width > text->clip_width) {
cut_off = TRUE;
break;
}
@@ -2572,7 +2569,7 @@ static void
primary_clear_cb (GtkClipboard *clipboard,
gpointer data)
{
-#if notyet
+#ifdef notyet
/* XXX */
gtk_editable_select_region (GTK_EDITABLE (entry), entry->current_pos, entry->current_pos);
#endif
@@ -2969,7 +2966,6 @@ _get_position(EText *text, ETextEventProcessorCommand *command)
case E_TEP_FORWARD_LINE: {
int offset_into_line;
- char *p;
offset_into_line = find_offset_into_line (text, text->selection_end, NULL);
if (offset_into_line == -1)
@@ -3000,7 +2996,6 @@ _get_position(EText *text, ETextEventProcessorCommand *command)
break;
}
case E_TEP_BACKWARD_LINE: {
- char *p;
int offset_into_line = find_offset_into_line (text, text->selection_end, &p);
if (offset_into_line == -1)
@@ -3341,12 +3336,12 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
if (cur_line) {
int xpos, ypos;
double clip_width, clip_height;
- gboolean trailing = FALSE;
+ /* gboolean trailing = FALSE; */
PangoRectangle pango_pos;
if (selection_index > 0 && selection_index == cur_line->start_index + cur_line->length) {
selection_index--;
- trailing = TRUE;
+ /* trailing = TRUE; */
}
pango_layout_index_to_pos (text->layout, selection_index, &pango_pos);