forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
82cda93923
commit
e12d6657ee
@ -1,3 +1,12 @@
|
||||
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>
|
||||
|
||||
* gtk/gtkrecentmanager.c (gtk_recent_manager_init)
|
||||
|
@ -1,3 +1,12 @@
|
||||
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>
|
||||
|
||||
* gtk/gtkrecentmanager.c (gtk_recent_manager_init)
|
||||
|
@ -5637,8 +5637,6 @@ selection_motion_event_handler (GtkTextView *text_view,
|
||||
}
|
||||
else
|
||||
{
|
||||
gint x, y;
|
||||
GdkModifierType state;
|
||||
GtkTextIter cursor, start, end;
|
||||
GtkTextIter orig_start, orig_end;
|
||||
GtkTextBuffer *buffer;
|
||||
|
@ -12766,14 +12766,14 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view,
|
||||
&tree_height);
|
||||
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;
|
||||
else if (tree_x + tree_width - requisition.width < 0)
|
||||
x = 0;
|
||||
else
|
||||
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;
|
||||
else if (tree_y + tree_height < 0) /* isn't really possible ... */
|
||||
y = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user