diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-13 02:36:44 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-13 02:36:44 +0800 |
commit | 4798532399252800f188c5431722fff02e6306eb (patch) | |
tree | c28450eebfc1e67fc171ea277e3fe998795e08f8 /addressbook/gui/search | |
parent | e9faa62d2f9f6bae897c2f718ee25b5a78e159c7 (diff) | |
download | gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.gz gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.tar.zst gsoc2013-evolution-4798532399252800f188c5431722fff02e6306eb.zip |
A few small interface fixes.
2000-08-12 Christopher James Lahey <clahey@helixcode.com>
* gui/search/Makefile.am,
gui/search/e-addressbook-search-dialog.c,
gui/search/e-addressbook-search-dialog.h: A few small interface
fixes.
* gui/component/Makefile.am: Link in the addressbook search
dialog.
svn path=/trunk/; revision=4780
Diffstat (limited to 'addressbook/gui/search')
-rw-r--r-- | addressbook/gui/search/Makefile.am | 4 | ||||
-rw-r--r-- | addressbook/gui/search/e-addressbook-search-dialog.c | 13 | ||||
-rw-r--r-- | addressbook/gui/search/e-addressbook-search-dialog.h | 1 |
3 files changed, 14 insertions, 4 deletions
diff --git a/addressbook/gui/search/Makefile.am b/addressbook/gui/search/Makefile.am index d18e9dcdfe..1050da1843 100644 --- a/addressbook/gui/search/Makefile.am +++ b/addressbook/gui/search/Makefile.am @@ -9,8 +9,8 @@ INCLUDES = \ $(BONOBO_GNOME_CFLAGS) noinst_LIBRARIES = \ - libeaddressbooksearchdialog.a + libeaddressbooksearch.a -libeaddressbooksearchdialog_a_SOURCES = \ +libeaddressbooksearch_a_SOURCES = \ e-addressbook-search-dialog.c \ e-addressbook-search-dialog.h diff --git a/addressbook/gui/search/e-addressbook-search-dialog.c b/addressbook/gui/search/e-addressbook-search-dialog.c index e89eafa074..4acfd1585c 100644 --- a/addressbook/gui/search/e-addressbook-search-dialog.c +++ b/addressbook/gui/search/e-addressbook-search-dialog.c @@ -25,6 +25,7 @@ #include <e-util/e-canvas.h> #include "e-addressbook-search-dialog.h" #include "addressbook/gui/minicard/e-minicard-view-widget.h" +#include "widgets/misc/e-scroll-frame.h" static void e_addressbook_search_dialog_init (EAddressbookSearchDialog *widget); static void e_addressbook_search_dialog_class_init (EAddressbookSearchDialogClass *klass); static void e_addressbook_search_dialog_set_arg (GtkObject *o, GtkArg *arg, guint arg_id); @@ -103,7 +104,7 @@ static void button_press (GtkWidget *widget, EAddressbookSearchDialog *dialog) { char *query; - gtk_widget_show(dialog->view); + gtk_widget_show(dialog->scrolled_window); query = get_query(); gtk_object_set(GTK_OBJECT(dialog->view), "query", query, @@ -117,6 +118,8 @@ e_addressbook_search_dialog_init (EAddressbookSearchDialog *view) GtkWidget *button; GnomeDialog *dialog = GNOME_DIALOG (view); + gtk_window_set_policy(GTK_WINDOW(view), FALSE, TRUE, FALSE); + view->search = get_widget(); gtk_box_pack_start(GTK_BOX(dialog->vbox), view->search, TRUE, TRUE, 0); gtk_widget_show(view->search); @@ -128,7 +131,13 @@ e_addressbook_search_dialog_init (EAddressbookSearchDialog *view) gtk_widget_show(button); view->view = e_minicard_view_widget_new(); - gtk_box_pack_start(GTK_BOX(dialog->vbox), view->view, TRUE, TRUE, 0); + gtk_widget_show(view->view); + + view->scrolled_window = e_scroll_frame_new(NULL, NULL); + e_scroll_frame_set_policy(E_SCROLL_FRAME(view->scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER); + gtk_container_add(GTK_CONTAINER(view->scrolled_window), view->view); + + gtk_box_pack_start(GTK_BOX(dialog->vbox), view->scrolled_window, TRUE, TRUE, 0); } GtkWidget * diff --git a/addressbook/gui/search/e-addressbook-search-dialog.h b/addressbook/gui/search/e-addressbook-search-dialog.h index 51ef350afa..84af66b4e1 100644 --- a/addressbook/gui/search/e-addressbook-search-dialog.h +++ b/addressbook/gui/search/e-addressbook-search-dialog.h @@ -45,6 +45,7 @@ struct _EAddressbookSearchDialog GtkWidget *search; GtkWidget *view; + GtkWidget *scrolled_window; }; struct _EAddressbookSearchDialogClass |