comparison src/gtksavedstatuses.c @ 13141:39e7014cb687

[gaim-migrate @ 15504] This removes the toolbar from the tab focus order for the Status window, the same way we remove it for the conversation window. The only problem with this is that there is now no way to reach some of the formatting options without using the mouse. We should probably add imhtml signals for the missing options, or add a focus_toolbar signal. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 07 Feb 2006 00:32:33 +0000
parents 0aa231ebbfd5
children e90e8655290d
comparison
equal deleted inserted replaced
13140:00f6445c6879 13141:39e7014cb687
1003 GtkWidget *sw; 1003 GtkWidget *sw;
1004 GtkWidget *text; 1004 GtkWidget *text;
1005 GtkWidget *toolbar; 1005 GtkWidget *toolbar;
1006 GtkWidget *vbox; 1006 GtkWidget *vbox;
1007 GtkWidget *win; 1007 GtkWidget *win;
1008 GList *focus_chain = NULL;
1008 1009
1009 dialog = g_new0(StatusEditor, 1); 1010 dialog = g_new0(StatusEditor, 1);
1010 1011
1011 if (saved_status != NULL) 1012 if (saved_status != NULL)
1012 dialog->original_title = g_strdup(gaim_savedstatus_get_title(saved_status)); 1013 dialog->original_title = g_strdup(gaim_savedstatus_get_title(saved_status));
1079 1080
1080 frame = gaim_gtk_create_imhtml(TRUE, &text, &toolbar); 1081 frame = gaim_gtk_create_imhtml(TRUE, &text, &toolbar);
1081 dialog->message = GTK_IMHTML(text); 1082 dialog->message = GTK_IMHTML(text);
1082 gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); 1083 gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0);
1083 gtk_widget_show(frame); 1084 gtk_widget_show(frame);
1085 focus_chain = g_list_prepend(focus_chain, dialog->message);
1086 gtk_container_set_focus_chain(GTK_CONTAINER(hbox), focus_chain);
1084 1087
1085 if ((saved_status != NULL) && (gaim_savedstatus_get_message(saved_status) != NULL)) 1088 if ((saved_status != NULL) && (gaim_savedstatus_get_message(saved_status) != NULL))
1086 gtk_imhtml_append_text(GTK_IMHTML(text), 1089 gtk_imhtml_append_text(GTK_IMHTML(text),
1087 gaim_savedstatus_get_message(saved_status), 0); 1090 gaim_savedstatus_get_message(saved_status), 0);
1088 1091