Mercurial > pidgin.yaz
changeset 16315:ee4ce3c4186f
Fix #248 (Control shouldn't steal focus from scrollback)
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 23 Apr 2007 03:02:37 +0000 |
parents | 1843c0180fbe |
children | c1f2831c1afe 3ba37836d674 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Mon Apr 23 01:30:49 2007 +0000 +++ b/pidgin/gtkconv.c Mon Apr 23 03:02:37 2007 +0000 @@ -2002,6 +2002,8 @@ (event->keyval == GDK_F10) || (event->keyval == GDK_Shift_L) || (event->keyval == GDK_Shift_R) || + (event->keyval == GDK_Control_L) || + (event->keyval == GDK_Control_R) || (event->keyval == GDK_Escape) || (event->keyval == GDK_Up) || (event->keyval == GDK_Down) || @@ -2205,25 +2207,25 @@ if (l) return l; filename = g_strdup_printf("%s.png", prpl); - + path = g_build_filename(DATADIR, "pixmaps", "pidgin", "protocols", "16", filename, NULL); pixbuf = gdk_pixbuf_new_from_file(path, NULL); if (pixbuf) l = g_list_append(l, pixbuf); g_free(path); - + path = g_build_filename(DATADIR, "pixmaps", "pidgin", "protocols", "22", filename, NULL); pixbuf = gdk_pixbuf_new_from_file(path, NULL); if (pixbuf) l = g_list_append(l, pixbuf); g_free(path); - + path = g_build_filename(DATADIR, "pixmaps", "pidgin", "protocols", "48", filename, NULL); pixbuf = gdk_pixbuf_new_from_file(path, NULL); if (pixbuf) l = g_list_append(l, pixbuf); g_free(path); - + g_hash_table_insert(prpl_lists, g_strdup(prpl), l); return l; } @@ -2308,7 +2310,7 @@ { PidginConversation *gtkconv; PidginWindow *win; - GList *l; + GList *l; GdkPixbuf *status = NULL; g_return_if_fail(conv != NULL); @@ -3159,7 +3161,7 @@ } if (gtkwin->menu.typing_icon == NULL) - { + { gtkwin->menu.typing_icon = gtk_image_new_from_stock(stock_id, GTK_ICON_SIZE_MENU); pidgin_menu_tray_append(PIDGIN_MENU_TRAY(gtkwin->menu.tray), gtkwin->menu.typing_icon, @@ -3465,7 +3467,7 @@ pixbuf = gtk_widget_render_icon (gtkconv->tab_cont, image, gtk_icon_size_from_name(PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL), "GtkTreeView"); - + if (!pixbuf) return NULL; @@ -3473,6 +3475,7 @@ g_object_unref(pixbuf); if (flags && purple_conv_chat_is_user_ignored(chat, name)) { +/* TODO: the .../status/default directory isn't installed, should it be? */ filename = g_build_filename(DATADIR, "pixmaps", "pidgin", "status", "default", "ignored.png", NULL); pixbuf = gdk_pixbuf_new_from_file(filename, NULL); g_free(filename); @@ -7848,7 +7851,7 @@ return window_list; } -static GList* +static GList* make_status_icon_list(const char *stock, GtkWidget *w) { GList *l = NULL; @@ -7863,8 +7866,8 @@ return l; } -static void -create_icon_lists(GtkWidget *w) +static void +create_icon_lists(GtkWidget *w) { available_list = make_status_icon_list(PIDGIN_STOCK_STATUS_AVAILABLE, w); busy_list = make_status_icon_list(PIDGIN_STOCK_STATUS_BUSY, w);