im.pidgin.pidgin: 244813420417e32b67367529afa904873ca08d0a
seanegan at pidgin.im
seanegan at pidgin.im
Tue Nov 27 05:05:38 EST 2007
-----------------------------------------------------------------
Revision: 244813420417e32b67367529afa904873ca08d0a
Ancestor: a9d1791990e2f5cc03fd7e1c4b0fe15710d5ce02
Author: seanegan at pidgin.im
Date: 2007-11-27T10:02:52
Branch: im.pidgin.pidgin
Modified files:
pidgin/gtkconv.c pidgin/gtkimhtml.c pidgin/gtkprefs.c
ChangeLog:
Kevin says we're ok defaulting persistent IMs on
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c afccec729e99c6b81e71b707376b69e9c4550caf
+++ pidgin/gtkconv.c 09f93522432f05923d3f683372bd979e61761a39
@@ -235,11 +235,7 @@ close_conv_cb(GtkWidget *w, GdkEventButt
switch (purple_conversation_get_type(conv)) {
case PURPLE_CONV_TYPE_IM:
{
- if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/im/close_immediately"))
- close_this_sucker(gtkconv);
- else
- hide_conv(gtkconv, TRUE);
- break;
+ hide_conv(gtkconv, TRUE);
}
case PURPLE_CONV_TYPE_CHAT:
{
@@ -7549,7 +7545,6 @@ pidgin_conversations_init(void)
purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/im/show_buddy_icons", TRUE);
purple_prefs_add_string(PIDGIN_PREFS_ROOT "/conversations/im/hide_new", "never");
- purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/im/close_immediately", TRUE);
#ifdef _WIN32
purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/win32/minimize_new_convs", FALSE);
============================================================
--- pidgin/gtkimhtml.c 314edca9329042a9b656e82d296c798156bb33ac
+++ pidgin/gtkimhtml.c 0446c7842983b72e0bf59660f65685e18baf1b6c
@@ -31,6 +31,7 @@
#include "internal.h"
#include "pidgin.h"
+#include "pidginstock.h"
#include "debug.h"
#include "util.h"
@@ -811,6 +812,7 @@ static void hijack_menu_cb(GtkIMHtml *im
static void hijack_menu_cb(GtkIMHtml *imhtml, GtkMenu *menu, gpointer data)
{
GtkWidget *menuitem;
+ GtkWidget *mi, *img;
menuitem = gtk_menu_item_new_with_mnemonic(_("Paste as Plain _Text"));
gtk_widget_show(menuitem);
@@ -836,6 +838,28 @@ static void hijack_menu_cb(GtkIMHtml *im
gtk_menu_shell_insert(GTK_MENU_SHELL(menu), menuitem, 5);
g_signal_connect(G_OBJECT(menuitem), "activate", G_CALLBACK(clear_formatting_cb), imhtml);
+
+ mi = gtk_menu_item_new();
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(PIDGIN_STOCK_TOOLBAR_SMILEY, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Smile!"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(PIDGIN_STOCK_TOOLBAR_INSERT, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Insert"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(GTK_STOCK_BOLD, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Font"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
}
static char *
@@ -4257,6 +4281,33 @@ static void imhtml_emit_signal_for_forma
g_object_unref(object);
}
+static void populate_popup_cb(GtkTextView *textview, GtkMenu *menu, gpointer nul)
+{
+ GtkWidget *mi, *img;
+
+ mi = gtk_menu_item_new();
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(GTK_STOCK_BOLD, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Font"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(PIDGIN_STOCK_TOOLBAR_INSERT, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Insert"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+
+ img = gtk_image_new_from_stock(PIDGIN_STOCK_TOOLBAR_SMILEY, GTK_ICON_SIZE_MENU);
+ mi = gtk_image_menu_item_new_with_label(_("_Smile!"));
+ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), img);
+ gtk_widget_show(mi);
+ gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi);
+}
+
static void imhtml_toggle_bold(GtkIMHtml *imhtml)
{
GtkTextIter start, end;
============================================================
--- pidgin/gtkprefs.c 3ad1c167fb42abbd33762354600c61dbeef908ce
+++ pidgin/gtkprefs.c e0a1cd00c0db951892e6368bb105bfd3d11acb5d
@@ -995,8 +995,6 @@ conv_page()
pidgin_prefs_checkbox(_("Show _formatting on incoming messages"),
PIDGIN_PREFS_ROOT "/conversations/show_incoming_formatting", vbox);
- pidgin_prefs_checkbox(_("Close IMs immediately when the tab is closed"),
- PIDGIN_PREFS_ROOT "/conversations/im/close_immediately", vbox);
iconpref1 = pidgin_prefs_checkbox(_("Show _detailed information"),
PIDGIN_PREFS_ROOT "/conversations/im/show_buddy_icons", vbox);
@@ -2306,6 +2304,7 @@ void pidgin_prefs_update_old()
purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/show_group_count");
purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/show_warning_level");
purple_prefs_remove(PIDGIN_PREFS_ROOT "/conversations/button_type");
+ purple_prefs_remove(PIDGIN_PREFS_ROOT "/conversations/close_immediately");
purple_prefs_remove(PIDGIN_PREFS_ROOT "/conversations/ctrl_enter_sends");
purple_prefs_remove(PIDGIN_PREFS_ROOT "/conversations/enter_sends");
purple_prefs_remove(PIDGIN_PREFS_ROOT "/conversations/escape_closes");
More information about the Commits
mailing list