Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 25088:e0dc8933ce26
Use a stock size that we are sure exists (which ends up making the icon a pixel
smaller). If this a problem, we can register a new icon size.
Fixes #8194.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 15 Feb 2009 20:54:59 +0000 |
parents | 008f186c7bc7 |
children | 2cece7df80c3 |
comparison
equal
deleted
inserted
replaced
25087:a946cffda321 | 25088:e0dc8933ce26 |
---|---|
64 | 64 |
65 #include <gdk/gdkkeysyms.h> | 65 #include <gdk/gdkkeysyms.h> |
66 #include <gtk/gtk.h> | 66 #include <gtk/gtk.h> |
67 #include <gdk/gdk.h> | 67 #include <gdk/gdk.h> |
68 | 68 |
69 #define HEADLINE_CLOSE_SIZE 12 | 69 #define HEADLINE_CLOSE_SIZE 11 |
70 | 70 |
71 typedef struct | 71 typedef struct |
72 { | 72 { |
73 PurpleAccount *account; | 73 PurpleAccount *account; |
74 | 74 |
5385 "expose_event", | 5385 "expose_event", |
5386 G_CALLBACK (paint_headline_hbox), | 5386 G_CALLBACK (paint_headline_hbox), |
5387 NULL); | 5387 NULL); |
5388 gtk_widget_set_name(gtkblist->headline_hbox, "gtk-tooltips"); | 5388 gtk_widget_set_name(gtkblist->headline_hbox, "gtk-tooltips"); |
5389 | 5389 |
5390 gtkblist->headline_close = gtk_widget_render_icon(ebox, GTK_STOCK_CLOSE, HEADLINE_CLOSE_SIZE, NULL); | 5390 gtkblist->headline_close = gtk_widget_render_icon(ebox, GTK_STOCK_CLOSE, |
5391 gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC), NULL); | |
5391 gtkblist->hand_cursor = gdk_cursor_new (GDK_HAND2); | 5392 gtkblist->hand_cursor = gdk_cursor_new (GDK_HAND2); |
5392 gtkblist->arrow_cursor = gdk_cursor_new (GDK_LEFT_PTR); | 5393 gtkblist->arrow_cursor = gdk_cursor_new (GDK_LEFT_PTR); |
5393 | 5394 |
5394 g_signal_connect(G_OBJECT(ebox), "enter-notify-event", G_CALLBACK(headline_box_enter_cb), gtkblist); | 5395 g_signal_connect(G_OBJECT(ebox), "enter-notify-event", G_CALLBACK(headline_box_enter_cb), gtkblist); |
5395 g_signal_connect(G_OBJECT(ebox), "leave-notify-event", G_CALLBACK(headline_box_leave_cb), gtkblist); | 5396 g_signal_connect(G_OBJECT(ebox), "leave-notify-event", G_CALLBACK(headline_box_leave_cb), gtkblist); |