Commit e12d6657 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Remove some unused variables.

2006-04-11  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextview.c (selection_motion_event_handler): Remove
        some unused variables.

        * gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
        a patch from David Trowbridge to improve the positioning of the
        search popup.  (#338047)
parent 82cda939
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (selection_motion_event_handler): Remove
some unused variables.
* gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
a patch from David Trowbridge to improve the positioning of the
search popup. (#338047)
2006-04-11 Emmanuele Bassi <ebassi@cvs.gnome.org> 2006-04-11 Emmanuele Bassi <ebassi@cvs.gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_manager_init) * gtk/gtkrecentmanager.c (gtk_recent_manager_init)
......
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (selection_motion_event_handler): Remove
some unused variables.
* gtk/gtktreeview.c ((gtk_tree_view_search_position_func): Apply
a patch from David Trowbridge to improve the positioning of the
search popup. (#338047)
2006-04-11 Emmanuele Bassi <ebassi@cvs.gnome.org> 2006-04-11 Emmanuele Bassi <ebassi@cvs.gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_manager_init) * gtk/gtkrecentmanager.c (gtk_recent_manager_init)
......
...@@ -5637,8 +5637,6 @@ selection_motion_event_handler (GtkTextView *text_view, ...@@ -5637,8 +5637,6 @@ selection_motion_event_handler (GtkTextView *text_view,
} }
else else
{ {
gint x, y;
GdkModifierType state;
GtkTextIter cursor, start, end; GtkTextIter cursor, start, end;
GtkTextIter orig_start, orig_end; GtkTextIter orig_start, orig_end;
GtkTextBuffer *buffer; GtkTextBuffer *buffer;
......
...@@ -12766,14 +12766,14 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view, ...@@ -12766,14 +12766,14 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view,
&tree_height); &tree_height);
gtk_widget_size_request (search_dialog, &requisition); gtk_widget_size_request (search_dialog, &requisition);
if (tree_x + tree_width - requisition.width > gdk_screen_get_width (screen)) if (tree_x + tree_width > gdk_screen_get_width (screen))
x = gdk_screen_get_width (screen) - requisition.width; x = gdk_screen_get_width (screen) - requisition.width;
else if (tree_x + tree_width - requisition.width < 0) else if (tree_x + tree_width - requisition.width < 0)
x = 0; x = 0;
else else
x = tree_x + tree_width - requisition.width; x = tree_x + tree_width - requisition.width;
if (tree_y + tree_height > gdk_screen_get_height (screen)) if (tree_y + tree_height + requisition.height > gdk_screen_get_height (screen))
y = gdk_screen_get_height (screen) - requisition.height; y = gdk_screen_get_height (screen) - requisition.height;
else if (tree_y + tree_height < 0) /* isn't really possible ... */ else if (tree_y + tree_height < 0) /* isn't really possible ... */
y = 0; y = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment