From 5918f7d6aa32cc1bc12bdf7f936c9502631c7f7f Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 9 Apr 2004 18:22:27 +0000 Subject: pass GDK_CURRENT_TIME instead of a function pointer to "time" to 2004-04-09 Chris Toshok * gui/component/addressbook-component.c (selector_tree_drag_motion): pass GDK_CURRENT_TIME instead of a function pointer to "time" to gdk_drag_status. not sure if this is right, but it's definitely more right than it was :) (impl_createControls): create the info label and add it to the sidebar control. it's not hooked up yet. svn path=/trunk/; revision=25399 --- addressbook/gui/component/addressbook-component.c | 33 +++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index 17da13b43e..aa8b76cc9d 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -37,7 +37,8 @@ #include "addressbook/util/eab-book-util.h" -#include "e-task-bar.h" +#include "widgets/misc/e-task-bar.h" +#include "widgets/misc/e-info-label.h" #include #include @@ -48,6 +49,7 @@ #include /* FIXME */ #include #include +#include #include #include @@ -389,7 +391,7 @@ selector_tree_drag_motion (GtkWidget *widget, if (data) g_object_unref (data); - gdk_drag_status (context, action, time); + gdk_drag_status (context, action, GDK_CURRENT_TIME); return TRUE; } @@ -476,7 +478,7 @@ impl_createControls (PortableServer_Servant servant, CORBA_Environment *ev) { AddressbookComponent *addressbook_component = ADDRESSBOOK_COMPONENT (bonobo_object_from_servant (servant)); - GtkWidget *selector; + GtkWidget *selector, *vbox, *info; GtkWidget *selector_scrolled_window; GtkWidget *statusbar_widget; BonoboControl *sidebar_control; @@ -510,9 +512,25 @@ impl_createControls (PortableServer_Servant servant, gtk_container_add (GTK_CONTAINER (selector_scrolled_window), selector); gtk_widget_show (selector_scrolled_window); - sidebar_control = bonobo_control_new (selector_scrolled_window); + statusbar_widget = e_task_bar_new (); + gtk_widget_show (statusbar_widget); + + e_activity_handler_attach_task_bar (addressbook_component->priv->activity_handler, + E_TASK_BAR (statusbar_widget)); + + info = e_info_label_new("evolution-contacts-mini.png"); + e_info_label_set_info((EInfoLabel *)info, _("Contacts"), ""); + gtk_widget_show (info); + vbox = gtk_vbox_new(FALSE, 0); + gtk_box_pack_start(GTK_BOX (vbox), info, FALSE, TRUE, 0); + gtk_box_pack_start(GTK_BOX (vbox), selector_scrolled_window, TRUE, TRUE, 0); + gtk_widget_show (vbox); + + sidebar_control = bonobo_control_new (vbox); + statusbar_control = bonobo_control_new (statusbar_widget); view_control = addressbook_new_control (); + g_signal_connect_object (selector, "primary_selection_changed", G_CALLBACK (primary_source_selection_changed_callback), G_OBJECT (view_control), 0); @@ -523,13 +541,6 @@ impl_createControls (PortableServer_Servant servant, load_primary_selection (addressbook_component); load_uri_for_selection (E_SOURCE_SELECTOR (selector), view_control); - statusbar_widget = e_task_bar_new (); - gtk_widget_show (statusbar_widget); - statusbar_control = bonobo_control_new (statusbar_widget); - - e_activity_handler_attach_task_bar (addressbook_component->priv->activity_handler, - E_TASK_BAR (statusbar_widget)); - *corba_sidebar_control = CORBA_Object_duplicate (BONOBO_OBJREF (sidebar_control), ev); *corba_view_control = CORBA_Object_duplicate (BONOBO_OBJREF (view_control), ev); *corba_statusbar_control = CORBA_Object_duplicate (BONOBO_OBJREF (statusbar_control), ev); -- cgit v1.2.3