Mercurial > pidgin.yaz
comparison pidgin/gtkroomlist.c @ 21885:f5d961556972
Refactor some of the tooltip drawing functions. And add some pretend docs.
Also, fix a bug where a tooltip would popup when hovering over the treeview
headers (in the roomlist, for example).
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 18 Dec 2007 09:17:39 +0000 |
parents | 6bf73aea6450 |
children | 5814ae85e756 |
comparison
equal
deleted
inserted
replaced
21884:b40a6bb267a1 | 21885:f5d961556972 |
---|---|
344 | 344 |
345 #define SMALL_SPACE 6 | 345 #define SMALL_SPACE 6 |
346 #define TOOLTIP_BORDER 12 | 346 #define TOOLTIP_BORDER 12 |
347 | 347 |
348 static gboolean | 348 static gboolean |
349 pidgin_roomlist_paint_tooltip(GtkWidget *widget, GdkEventExpose *event, gpointer user_data) | 349 pidgin_roomlist_paint_tooltip(GtkWidget *widget, gpointer user_data) |
350 { | 350 { |
351 PurpleRoomlist *list = user_data; | 351 PurpleRoomlist *list = user_data; |
352 PidginRoomlist *grl = list->ui_data; | 352 PidginRoomlist *grl = list->ui_data; |
353 GtkStyle *style; | 353 GtkStyle *style; |
354 int current_height, max_width; | 354 int current_height, max_width; |