aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-12-19 06:22:15 +0800
committerChris Toshok <toshok@src.gnome.org>2002-12-19 06:22:15 +0800
commit0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1 (patch)
treeacc728e5182af97affe8961dde10fca9c5effe50 /addressbook
parentace402d9173fe24b4f9a753f7c155fa0605ed866 (diff)
downloadgsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar.gz
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar.bz2
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar.lz
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar.xz
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.tar.zst
gsoc2013-evolution-0f56ef44c9c24c5bd4b27a537d8b3e686395b2b1.zip
g_string_sprintfa -> g_string_append_printf. (create_alphabet): same.
2002-12-18 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (jump_to_letters): g_string_sprintfa -> g_string_append_printf. (create_alphabet): same. (create_minicard_view): remove gtk_widget_{push,pop}_visual. * gui/widgets/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. svn path=/trunk/; revision=19161
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog9
-rw-r--r--addressbook/gui/widgets/Makefile.am4
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c10
3 files changed, 16 insertions, 7 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index d8a22bb040..41d4785fdd 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,14 @@
2002-12-18 Chris Toshok <toshok@ximian.com>
+ * gui/widgets/e-addressbook-view.c (jump_to_letters):
+ g_string_sprintfa -> g_string_append_printf.
+ (create_alphabet): same.
+ (create_minicard_view): remove gtk_widget_{push,pop}_visual.
+
+ * gui/widgets/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.
+
+2002-12-18 Chris Toshok <toshok@ximian.com>
+
* gui/widgets/e-minicard.c (e_minicard_realize): drop use of
"font" arg.
(get_left_width): use pango to calculate this instead of a GdkFont.
diff --git a/addressbook/gui/widgets/Makefile.am b/addressbook/gui/widgets/Makefile.am
index eed44c04a2..a2fd2b24f2 100644
--- a/addressbook/gui/widgets/Makefile.am
+++ b/addressbook/gui/widgets/Makefile.am
@@ -12,6 +12,10 @@ INCLUDES = \
-I$(top_srcdir)/addressbook/gui/component \
-I$(top_srcdir)/widgets/misc \
-I$(top_builddir)/shell \
+ -DG_DISABLE_DEPRECATED \
+ -DGTK_DISABLE_DEPRECATED \
+ -DLIBGNOME_DISABLE_DEPRECATED \
+ -DLIBGNOMEUI_DISABLE_DEPRECATED \
$(EVOLUTION_ADDRESSBOOK_CFLAGS)
noinst_LIBRARIES = \
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 5e731d3483..375f05dae9 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -30,7 +30,6 @@
#include <gal/widgets/e-scroll-frame.h>
#include <gal/widgets/e-popup-menu.h>
#include <gal/widgets/e-gui-utils.h>
-#include <gal/widgets/e-unicode.h>
#include <gal/menus/gal-view-factory-etable.h>
#include <gal/menus/gal-view-etable.h>
#include <gal/util/e-xml-utils.h>
@@ -958,7 +957,7 @@ jump_to_letters (EAddressbookView *view, gchar* l)
for (p = letter_v + 1; *p != NULL; p++) {
for (s = *p; *s != '\0'; s = g_utf8_next_char (s)) {
buf [g_unichar_to_utf8 (g_utf8_get_char(s), buf)] = '\0';
- g_string_sprintfa (gstr, "(beginswith \"file_as\" \"%s\")", buf);
+ g_string_append_printf (gstr, "(beginswith \"file_as\" \"%s\")", buf);
}
}
g_string_append (gstr, "))");
@@ -972,7 +971,7 @@ jump_to_letters (EAddressbookView *view, gchar* l)
for (s = l; *s != '\0'; s = g_utf8_next_char (s)) {
buf [g_unichar_to_utf8 (g_utf8_get_char(s), buf)] = '\0';
- g_string_sprintfa (gstr, "(beginswith \"file_as\" \"%s\")", buf);
+ g_string_append_printf (gstr, "(beginswith \"file_as\" \"%s\")", buf);
}
g_string_append (gstr, ")");
@@ -1058,9 +1057,8 @@ create_alphabet (EAddressbookView *view)
LetterClosure *closure;
char *label;
- label = e_utf8_to_locale_string (*pl);
+ label = *pl;
button = gtk_toggle_button_new_with_label (label);
- g_free (label);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
closure = g_new (LetterClosure, 1);
@@ -1102,7 +1100,6 @@ create_minicard_view (EAddressbookView *view)
GtkWidget *minicard_hbox;
EAddressbookReflowAdapter *adapter;
- gtk_widget_push_visual (gdk_rgb_get_visual ());
gtk_widget_push_colormap (gdk_rgb_get_cmap ());
minicard_hbox = gtk_hbox_new(FALSE, 0);
@@ -1149,7 +1146,6 @@ create_minicard_view (EAddressbookView *view)
gtk_widget_show_all( GTK_WIDGET(minicard_hbox) );
- gtk_widget_pop_visual ();
gtk_widget_pop_colormap ();
e_reflow_model_changed (E_REFLOW_MODEL (adapter));