aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/ename/test-ename-western-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/ename/test-ename-western-gtk.c')
-rw-r--r--e-util/ename/test-ename-western-gtk.c157
1 files changed, 0 insertions, 157 deletions
diff --git a/e-util/ename/test-ename-western-gtk.c b/e-util/ename/test-ename-western-gtk.c
deleted file mode 100644
index 4ab32c2f92..0000000000
--- a/e-util/ename/test-ename-western-gtk.c
+++ /dev/null
@@ -1,157 +0,0 @@
-#include <gtk/gtkmain.h>
-#include <gtk/gtktable.h>
-#include <libgnomeui/gnome-app.h>
-#include <libgnomeui/gnome-ui-init.h>
-#include <gal/widgets/e-unicode.h>
-#include "e-name-western.h"
-
-ENameWestern *name;
-GtkWidget *full;
-GtkWidget *prefix;
-GtkWidget *first;
-GtkWidget *middle;
-GtkWidget *nick;
-GtkWidget *last;
-GtkWidget *suffix;
-
-static void
-fill_entries (void)
-{
-
-#define SET(a,b) (e_utf8_gtk_entry_set_text (GTK_ENTRY (a), (b) == NULL ? "" : (b)))
- SET(prefix, name->prefix);
- SET(first, name->first);
- SET(middle, name->middle);
- SET(nick, name->nick);
- SET(last, name->last);
- SET(suffix, name->suffix);
-}
-
-static void
-full_changed_cb (GtkEntry *fulle)
-{
- gchar *str;
-
- e_name_western_free (name);
- str = e_utf8_gtk_entry_get_text (fulle);
- name = e_name_western_parse (str);
- fill_entries ();
-
- g_free (str);
-}
-
-static void
-create_window (void)
-{
- GtkWidget *app;
- GtkTable *table;
-
- GtkWidget *prefix_label;
- GtkWidget *first_label;
- GtkWidget *middle_label;
- GtkWidget *nick_label;
- GtkWidget *last_label;
- GtkWidget *suffix_label;
-
- app = gnome_app_new ("test", "Evolution Western Name Parser");
-
- table = GTK_TABLE (gtk_table_new (3, 6, FALSE));
-
- full = gtk_entry_new ();
- prefix = gtk_entry_new ();
- first = gtk_entry_new ();
- middle = gtk_entry_new ();
- nick = gtk_entry_new ();
- last = gtk_entry_new ();
- suffix = gtk_entry_new ();
-
- gtk_widget_set_usize (prefix, 100, 0);
- gtk_widget_set_usize (first, 100, 0);
- gtk_widget_set_usize (middle, 100, 0);
- gtk_widget_set_usize (nick, 100, 0);
- gtk_widget_set_usize (last, 100, 0);
- gtk_widget_set_usize (suffix, 100, 0);
-
- gtk_table_attach (table, full, 0, 6, 0, 1,
- GTK_EXPAND | GTK_FILL, 0,
- 0, 0);
-
- gtk_table_attach (table, prefix, 0, 1, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, first, 1, 2, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, middle, 2, 3, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, nick, 3, 4, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, last, 4, 5, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, suffix, 5, 6, 1, 2,
- GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
- 0, 0);
-
- prefix_label = gtk_label_new ("Prefix");
- first_label = gtk_label_new ("First");
- middle_label = gtk_label_new ("Middle");
- nick_label = gtk_label_new ("Nick");
- last_label = gtk_label_new ("Last");
- suffix_label = gtk_label_new ("Suffix");
-
- gtk_table_attach (table, prefix_label, 0, 1, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, first_label, 1, 2, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, middle_label, 2, 3, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, nick_label, 3, 4, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, last_label, 4, 5, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gtk_table_attach (table, suffix_label, 5, 6, 2, 3,
- GTK_SHRINK, 0,
- 0, 0);
-
- gnome_app_set_contents (GNOME_APP (app), GTK_WIDGET (table));
-
- gtk_widget_show_all (app);
-
- gtk_entry_set_text (GTK_ENTRY (full),
- "The Honorable Doctor van Jacobsen, Albert Roderick \"The Clenched Fist\" Jr, MD, PhD, Esquire");
-
- name = e_name_western_parse ("The Honorable Doctor van Jacobsen, Albert Roderick \"The Clenched Fist\" Jr, MD, PhD, Esquire");
- fill_entries ();
-
- gtk_signal_connect (GTK_OBJECT (full), "changed", GTK_SIGNAL_FUNC (full_changed_cb), NULL);
-}
-
-int
-main (int argc, char **argv)
-{
- gnome_program_init ("Test EName", "Test EName", LIBGNOMEUI_MODULE, argc, argv, NULL);
-
- create_window ();
-
- gtk_main ();
-
- return 0;
-}
d>linimon2017-06-031-0/+3 * Add PORTSCOUTsunpoet2017-06-031-0/+2 * Update to 1.38sunpoet2017-06-032-5/+5 * audio/py-pyacoustid: Update to 1.1.5feld2017-06-012-5/+5 * Remove bogus CONFIGURE_ENVamdmi32017-06-011-2/+1 * - Update to 2.1.3amdmi32017-06-017-64/+10 * New port: audio/gstreamer-plugins-sndiotobik2017-05-315-0/+40 * - Add Sndio backend from [1] and fix ittobik2017-05-316-75/+163 * Update WWWsunpoet2017-05-301-1/+1 * Update science/hdf5 to 1.10.1sunpoet2017-05-301-1/+1 * Remove CONFLICTS: audio/libshout2 has been removed over 3 yearssunpoet2017-05-291-2/+0 * Update to upstream version 0.20.8riggs2017-05-292-5/+4 * Add LICENSE_FILEsunpoet2017-05-291-5/+8 * Fix build on aarch64 (endian detection)riggs2017-05-292-1/+19 * - Update to 0.8joneum2017-05-2912-108/+12 * Update to 6.0-9.el7_3.tijl2017-05-294-22/+22 * Mark some ports failing on armv6, for errors classified as "missing_header".linimon2017-05-282-0/+4 * Mark some ports failing on armv6, for errors classified as "linker_error".linimon2017-05-281-0/+1 * Mark some ports failing on armv6, for errors classified as "configure_error".linimon2017-05-281-0/+5 * Mark some ports failing on armv6, for errors classified as "clang".linimon2017-05-271-1/+2 * Mark some ports failing on armv6, for errors classified as "bad C++ code".linimon2017-05-271-2/+3 * Mark some ports failing on armv6, for errors classified as "???".linimon2017-05-272-1/+6 * Update to CentOS 6.9.tijl2017-05-264-18/+18 * - Update to 5.9joneum2017-05-263-5/+15 * Revision bump of all ports with USE_GL after consolidation of mesa-libsrezny2017-05-2312-10/+12 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-2212-3/+24 * Add PORTSCOUTsunpoet2017-05-211-0/+2 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-215-7/+7 * - Update WWWamdmi32017-05-211-1/+1 * Relax USES=pythonsunpoet2017-05-212-12/+11 * * Update to 0.7tcberner2017-05-214-7/+29 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-211-1/+1 * Update to 4.3tcberner2017-05-202-4/+4 * Update ot 17.04tcberner2017-05-203-35/+4 * svn copy grilo -> grilo2 and grilo-plugins -> grilo-plugins2kwm2017-05-202-4/+5 * Update to latest freedv codec2 0.6db2017-05-198-215/+359 * Hook audio/mpdscribble to the buildantoine2017-05-171-0/+1 * - Update maintainer addressjoneum2017-05-161-1/+1 * Prepare the removal of x11-toolkits/qt5-declarativetcberner2017-05-151-2/+2 * Mark some ports failing on power64. In cases where the error messagelinimon2017-05-132-4/+4 * audio/exaile-devel: update to latest revisionrm2017-05-124-35/+36 * Fix check-sanity after WTFPL additionantoine2017-05-111-2/+0 * Mark BROKEN: fails to buildantoine2017-05-111-2/+2 * Mark BROKEN: fails to buildantoine2017-05-111-0/+2 * Mark BROKEN: fails to buildantoine2017-05-111-0/+2 * Fix direct dependency chain for GUI option now that the port has switched fromehaupt2017-05-101-2/+2 * Update GTK interface from GTK 1.2 to GTK 2.0ehaupt2017-05-104-4/+234 * Rename option PULSE to PULSEAUDIOtobik2017-05-091-5/+5 * Rename option PULSE to PULSEAUDIOtobik2017-05-091-4/+4 * Properly resurect aylet this time via repocopy in order to retain history. Thisehaupt2017-05-094-0/+77 * Remove aylet in preparation for a proper repocopy from the old version in orderehaupt2017-05-094-77/+0 * Fix typo in comment.netchild2017-05-091-1/+1 * Remove pkg-message. It was not intended to resurrect this file in the previousehaupt2017-05-081-4/+0 * Resurrect, overhaul, and maintain audio/aylet. Project page is available. Theehaupt2017-05-086-0/+82 * Clarify the patent issues in a comment given recent enquiries.netchild2017-05-071-1/+11 * Remove audio/ufmcontrol-i18n, this port was broken for more than six months.rene2017-05-076-119/+0 * Fix library updatingriggs2017-05-072-1/+12 * Update to upstream version 0.125.0, add SNDIO optionriggs2017-05-0611-340/+254 * hsaudiotag is a pure Python library that lets you read metadata (bitrate,miwi2017-05-064-0/+30 * Update to 1.0.28.jkim2017-05-063-12/+9 * r431187 moved machine-id to the upstream default location. Remove patchingtijl2017-05-041-2/+1 * Update to 0.27.1ehaupt2017-05-042-4/+4 * Simplify USE_GITHUB usage.mat2017-05-032-8/+6 * devel/boost-*: update to 1.64.0jbeich2017-05-0215-14/+15 * Update math/gsl to 2.3tcberner2017-05-021-0/+1 * remove ${PORTSDIR} from SOUP_LIB_DEPENDSler2017-05-021-1/+1 * [revive] audio/mpdscribble: fix for unfetchableler2017-05-025-0/+78 * Provide error messages for some ports failing on aarch64, and, in alinimon2017-05-023-0/+6 * Use USES=gnomesunpoet2017-05-011-2/+2 * Remove dependency on net/clamz which is expired.ler2017-05-011-4/+1 * 2017-04-30 devel/stormlib-ghost++: Unfetchable for more than six months (goog...ler2017-04-3018-287/+0 * Remove MAKE_JOBS_UNSAFE. This slipped in during testing.ehaupt2017-04-301-2/+0 * Add goattracker 2.73, a crossplatform music editor for creating Commodoreehaupt2017-04-308-0/+159 * Update devel/protobuf to 3.3.0sunpoet2017-04-294-4/+4 * Update to 0.98sunpoet2017-04-292-4/+4 * Update to 0.97sunpoet2017-04-292-4/+4 * Update to 0.8.9.0. This is a bugfix release (shared library version was notehaupt2017-04-282-5/+5 * Update to 3.1.d6. Now that sndio audio support is much more reliable (thanks toehaupt2017-04-272-8/+14 * Apparently, Google is not only archiving the distfiles, but projects'danfe2017-04-261-1/+1 * Chase ffmpeg 3.3 update (ABI changes)riggs2017-04-2547-34/+47 * audio/py-eyed3: fix path to python interpreterrm2017-04-241-1/+3 * Update to upstream version 10.1.2riggs2017-04-222-4/+4 * - Fix shebangsmiwi2017-04-222-4/+5 * - Fix shebangsmiwi2017-04-221-3/+4 * - Fix shebangsamdmi32017-04-211-8/+8 * Update to 20170420ehaupt2017-04-212-5/+4 * - Fix shebangsmiwi2017-04-211-1/+2 * audio/lib{sndfile,samplerate}: add CPE informationjbeich2017-04-202-2/+4 * - Fix shebangsamdmi32017-04-201-2/+3 * Use version tag in GH_TUPLE for database file instead of git hash now that theehaupt2017-04-192-4/+4 * - Move from SF to GitHubehaupt2017-04-194-25/+48 * - Move from SF to GitHubehaupt2017-04-183-20/+13 * - Fix shebangsamdmi32017-04-181-2/+4 * - Switch to options helpermiwi2017-04-181-3/+6 * - Fix shebangsmiwi2017-04-181-1/+2 * Update to 0.4.5.vanilla2017-04-184-10/+15 * - Update to 16.06nivit2017-04-173-8/+224 * Update x11-toolkits/fox17 to 1.7.59jhale2017-04-161-0/+1 * Update to upstream version 0.2.11, fixes runtime issue with python GILriggs2017-04-153-4/+20 * Update WWWehaupt2017-04-131-1/+1 * - Rename audio/schism for better namingehaupt2017-04-135-10/+15 * Provide man page, .desktop file and icon (submitted upstream).ehaupt2017-04-122-3/+16 * Add protracker 2.3.d, amiga ProTracker clone.ehaupt2017-04-124-0/+41 * - Switch to USES=localbaseamdmi32017-04-121-5/+2 * Make defining both PORTVERSION and DISTVERSION a DEV_ERROR.mat2017-04-112-4/+3 * Fix broken UI when linking with devel/ncursestobik2017-04-111-4/+7 * Update to 2.8.0-rc0tobik2017-04-108-101/+46 * Update to 0.20ehaupt2017-04-102-3/+4 * These ports now build on powerpc64.linimon2017-04-101-3/+1 * Update to 0.27gblach2017-04-102-4/+4 * Moving maintainership burden onto broader shoulderslth2017-04-083-3/+3 * Update to 1.1.7jhale2017-04-075-141/+59 * Update to 0.1.10. No list of changes available, but looks like bug fixes.naddy2017-04-074-102/+4 * Fix build with recent libsigc++20bapt2017-04-051-1/+2 * Fix build with recent sigc++20bapt2017-04-051-1/+2 * Mark as broken: does not build with recent sigc++20 and not C++11 compatiblebapt2017-04-051-0/+2 * - Update to 2.11gblach2017-04-053-6/+7 * Fix build with new sigc++20bapt2017-04-051-1/+2 * Update to 0.8.10sunpoet2017-04-032-4/+4 * Fix build with newer sigc++20bapt2017-04-031-3/+2 * Fix build with newer sigc++20bapt2017-04-031-2/+3 * Fix build with new sigc++20bapt2017-04-031-1/+2 * Chase a bunch of failures after libsigc++20 updatebapt2017-04-022-1/+4 * Update to 3.4.2bapt2017-04-023-6/+8 * remove another gnome2 remnantbapt2017-04-025-42/+0 * Remove remnant from gnome 2 which is not depend on anymorebapt2017-04-025-356/+0 * Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-0137-27/+37 * audio/ardour5: update 5.6.0 -> 5.8.0robak2017-03-293-6/+10 * - Update devel/libpthread-stubs to 0.4ashish2017-03-292-7/+7 * - Update pkg-descr, including project homepage.shaun2017-03-292-11/+20 * With incompletely specified parameters the OSS backend will alwaystobik2017-03-282-10/+41 * Unbreak after r436971.rakuco2017-03-281-0/+27 * Update 1.60.mat2017-03-272-6/+5 * Switch default version of samba from 4.3 to 4.4antoine2017-03-262-2/+2 * audio/oss: update to 4.2.b2017 (maintenance release)jbeich2017-03-255-4/+20 * - Update to 1.0.0ehaupt2017-03-244-22/+32 * - Add USES=samba to handle dependency on sambaantoine2017-03-222-3/+6 * - Add SNDIO optiontobik2017-03-216-10/+823 * Update maintainer email address.araujo2017-03-212-2/+2 * New port: audio/supercollidertobik2017-03-2122-0/+1985 * Take in olivierd@'s commit bit on his request.rene2017-03-193-3/+3 * Update to 0.1.5.vanilla2017-03-172-4/+4 * Remove all _USE=openssl occurrences.mat2017-03-151-1/+1 * Remove all USE_OPENSSL occurrences.mat2017-03-155-10/+5 * Update to 3.0.3tobik2017-03-133-15/+18 * Update to 3.0.2ehaupt2017-03-132-4/+4 * Update to 3.0.1ehaupt2017-03-122-4/+4 * Update to upstream version 0.20.6 (bugfix release)riggs2017-03-123-15/+4 * audio/mpg123: update to 1.24.0novel2017-03-113-6/+6 * - Remove empty directoriesak2017-03-071-1/+0 * Add missing Qt4 xml dependency to fix build failure when TEST option is ONjhale2017-03-071-5/+6 * Update to upstream release 2.0.0riggs2017-03-0621-319/+162 * Add default OPTION for READLINE so users can disable it for custom buildsriggs2017-03-041-3/+7 * - Resurrect `audio/rezound' as the days of gcc/libstdc++ mess are gonedanfe2017-03-0419-0/+304 * Mark the remaining ports depending on Google Code as DEPRECATED, with anmat2017-03-045-0/+10 * Upstream has replaced their dist file, added/replaced files and didn'tsbruno2017-03-032-3/+4 * - Define LICENSE (MIT)danfe2017-03-021-2/+2 * This is a spectrogram plugin for DeaDBeeF audio player.danfe2017-03-026-0/+119 * New port: audio/sonic-visualisertobik2017-03-0216-0/+356 * Remove expired ports:rene2017-03-0212-156/+0 * Fix configure for QT5 option after Qt 5.7.1 update (r434380)jhale2017-03-011-1/+4 * - Fix LICENSEamdmi32017-02-282-6/+8 * Reset ports of itetcu@ after taking in his commit bit for safekeeping.rene2017-02-282-2/+2 * - Freepascal update to 3.0.2acm2017-02-272-2/+2 * Deprecate ports broken for more than 6 monthsantoine2017-02-261-0/+2 * Update to 3.0ehaupt2017-02-262-7/+13 * (Readdition of audio/alac which was removed on 418056)ehaupt2017-02-266-0/+74 * - Update to 0.5.0olivierd2017-02-263-6/+9 * Update to upstream version 0.20.5; fixes buffer overflows in http outputriggs2017-02-263-4/+15 * Pass PREFIX to the install script in case it's not /usr/localrezny2017-02-251-2/+2 * - Update to 1.37olivierd2017-02-252-5/+5 * Update to 1.36.3sunpoet2017-02-252-4/+4 * audio/fdk-aac: Update version 0.1.4=>0.1.5bofh2017-02-24