/* ETextTest: E-Text item test program Copyright (C)2000: Iain Holmes This code is licensed under the GPL */ #include "e-text.h" #include void quit_cb (GtkWidget *widget, gpointer data) { gtk_main_quit (); } void change_text_cb (GtkEntry *entry, EText *text) { gchar *str; str = gtk_entry_get_text (entry); gnome_canvas_item_set (GNOME_CANVAS_ITEM (text), "text", str, NULL); } void change_font_cb (GtkEntry *entry, EText *text) { gchar *font; font = gtk_entry_get_text (entry); gnome_canvas_item_set (GNOME_CANVAS_ITEM (text), "font", font, NULL); } int main (int argc, char **argv) { GtkWidget *window, *canvas, *scroller, *vbox, *text, *font; GtkWidget *frame; GnomeCanvasItem *item; gnome_init ("ETextTest", "0.0.1", argc, argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "EText Test"); gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (quit_cb), NULL); gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap ()); canvas = gnome_canvas_new (); gtk_widget_pop_visual (); gtk_widget_pop_colormap (); scroller = gtk_scrolled_window_new (NULL, NULL); vbox = gtk_vbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_box_pack_start (GTK_BOX (vbox), scroller, TRUE, TRUE, 2); gtk_container_add (GTK_CONTAINER (scroller), canvas); frame = gtk_frame_new ("Text"); text = gtk_entry_new (); gtk_container_add (GTK_CONTAINER (frame), text); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); frame = gtk_frame_new ("Font"); font = gtk_entry_new (); gtk_container_add (GTK_CONTAINER (frame), font); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); item = gnome_canvas_item_new (gnome_canvas_root (GNOME_CANVAS (canvas)), e_text_get_type (), "text", "Hello World! This is a really long string to test out the ellipsis stuff.", "x", 10.0, "y", 10.0, "font", "-adobe-helvetica-medium-r-normal--12-*-72-72-p-*-iso8859-1", "fill_color", "black", "anchor", GTK_ANCHOR_NW, "use_ellipsis", TRUE, "ellipsis", "...", "editable", TRUE, "line_wrap", TRUE, "max_lines", 3, "clip_width", 150.0, NULL); gtk_signal_connect (GTK_OBJECT (text), "activate", GTK_SIGNAL_FUNC (change_text_cb), item); gtk_signal_connect (GTK_OBJECT (font), "activate", GTK_SIGNAL_FUNC (change_font_cb), item); gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0.0, 0.0, 400.0, 400.0); gtk_widget_show_all (window); gtk_main (); return 0; } value='dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Convert net-im/libpurple (and slave ports net-im/finch and net-im/pidgin)tijl2014-05-181-1/+1
* Mark net-im/pidgin-facebookchat and lang/clisp as deprecated: upstreamlinimon2014-04-292-3/+6
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2
* - update png to 1.5.10dinoex2012-06-011-1/+1
* Cease installing icons for Facebook since Pidgin 2.7.9 now installs itsjsa2011-01-062-11/+4
* Update to 1.69.jsa2010-12-022-4/+3
* Update to latest.jsa2010-10-122-5/+5
* Update my email address to my new @FreeBSD.org addyjsa2010-07-251-1/+1
* Update to 1.67wxs2010-06-152-6/+7
* - update to 1.4.1dinoex2010-03-281-0/+1
* - Update to 1.65wen2010-03-102-5/+4
* - update to jpeg-8dinoex2010-02-051-0/+1
* - Update to 1.64miwi2009-12-192-4/+4
* - Remove IGNORE now devel/json-glib has been updated.tdb2009-11-301-5/+0
* - Update to 1.63. Due to recent Facebook protocol changes, this pluginbeat2009-11-152-5/+10
* Over to new maintainer.linimon2009-11-121-1/+1
* - Update to 1.60miwi2009-08-282-7/+10
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1
* - Update to 1.50miwi2009-06-162-4/+4
* - Update to 1.47miwi2009-03-012-4/+4
* - Update to 1.45miwi2009-01-102-5/+5
* - Update to 1.35rafan2008-08-252-5/+6