[evolution-patches] composer patch for bug #39763
- From: Chris Toshok <toshok ximian com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] composer patch for bug #39763
- Date: 07 Apr 2003 16:00:55 -0700
just removes a couple of signals and makes sure to set the ui container
on the bonobo widgets corresponding to the To/Cc/Bcc fields.
Chris
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
retrieving revision 1.518
diff -u -r1.518 ChangeLog
--- ChangeLog 4 Apr 2003 18:25:52 -0000 1.518
+++ ChangeLog 7 Apr 2003 23:00:12 -0000
@@ -1,3 +1,15 @@
+2003-04-07 Chris Toshok <toshok ximian com>
+
+ [ fixes bug #39763 ]
+ * e-msg-composer.c (setup_cut_copy_paste): remove the
+ control_entry_focus_{in,out}_event_cb signal stuff.
+ (control_entry_focus_in_event_cb): nuke
+ (control_entry_focus_in_event_cb): same.
+
+ * e-msg-composer-hdrs.c (create_addressbook_entry): pass the
+ contain to bonobo_widget_new_control_from_objref when creating the
+ entries.
+
2003-04-04 Jeffrey Stedfast <fejj ximian com>
* e-msg-composer.c (autosave_save_draft): If the composer isn't
Index: e-msg-composer.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
retrieving revision 1.379
diff -u -r1.379 e-msg-composer.c
--- e-msg-composer.c 4 Apr 2003 18:25:52 -0000 1.379
+++ e-msg-composer.c 7 Apr 2003 23:00:14 -0000
@@ -2841,30 +2841,6 @@
return FALSE;
}
-static gboolean
-control_entry_focus_in_event_cb (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
-{
- EMsgComposer *composer = user_data;
-
- g_assert (composer->focused_entry == NULL);
-
- bonobo_control_frame_control_activate (bonobo_widget_get_control_frame (BONOBO_WIDGET (widget)));
-
- return FALSE;
-}
-
-static gboolean
-control_entry_focus_out_event_cb (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
-{
- EMsgComposer *composer = user_data;
-
- g_assert (composer->focused_entry == NULL);
-
- bonobo_control_frame_control_deactivate (bonobo_widget_get_control_frame (BONOBO_WIDGET (widget)));
-
- return FALSE;
-}
-
static void
setup_cut_copy_paste (EMsgComposer *composer)
{
@@ -2880,20 +2856,6 @@
entry = e_msg_composer_hdrs_get_reply_to_entry (hdrs);
g_signal_connect (entry, "focus-in-event", G_CALLBACK (composer_entry_focus_in_event_cb), composer);
g_signal_connect (entry, "focus-out-event", G_CALLBACK (composer_entry_focus_out_event_cb), composer);
-
- entry = e_msg_composer_hdrs_get_to_entry (hdrs);
- g_signal_connect (entry, "focus-in-event", G_CALLBACK (control_entry_focus_in_event_cb), composer);
- g_signal_connect (entry, "focus-out-event", G_CALLBACK (control_entry_focus_out_event_cb), composer);
-
- entry = e_msg_composer_hdrs_get_cc_entry (hdrs);
- g_signal_connect (entry, "focus-in-event", G_CALLBACK (control_entry_focus_in_event_cb), composer);
- g_signal_connect (entry, "focus-out-event", G_CALLBACK (control_entry_focus_out_event_cb), composer);
-
- entry = e_msg_composer_hdrs_get_bcc_entry (hdrs);
- g_signal_connect (entry, "focus-in-event", G_CALLBACK (control_entry_focus_in_event_cb), composer);
- g_signal_connect (entry, "focus-out-event", G_CALLBACK (control_entry_focus_out_event_cb), composer);
-
- /* FIXME: do the same for the gtkhtml editor */
}
static EMsgComposer *
Index: e-msg-composer-hdrs.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer-hdrs.c,v
retrieving revision 1.109
diff -u -r1.109 e-msg-composer-hdrs.c
--- e-msg-composer-hdrs.c 1 Apr 2003 23:41:14 -0000 1.109
+++ e-msg-composer-hdrs.c 7 Apr 2003 23:00:14 -0000
@@ -446,7 +446,7 @@
CORBA_exception_free (&ev);
control_widget = bonobo_widget_new_control_from_objref (
- corba_control, CORBA_OBJECT_NIL);
+ corba_control, bonobo_ui_component_get_container (priv->uic));
cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (control_widget));
pb = bonobo_control_frame_get_control_property_bag (cf, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]