From cfaef1b6c9f33fbaa114628cf513d129bdff3c1c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 24 Jul 2005 01:47:52 +0000 Subject: Fixes - Dummy UI plugin - GTK2 UI plugin - Fixed typo: 'const rcc_string' -> 'rcc_const_string' - Fix: Disable BDB recoding in case if recoding switched off --- examples/Makefile.am | 12 ++++++++++-- examples/rcc-gtk-config.c | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/Makefile.am b/examples/Makefile.am index 15df761..6886a77 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -5,7 +5,15 @@ example_LDADD= ../src/librcc.la if HAVE_GTK bin_PROGRAMS+= rcc-gtk-config rcc_gtk_config_SOURCES = rcc-gtk-config.c -rcc_gtk_config_LDADD=../ui/librccgtk.la @GTK_LIBS@ +rcc_gtk_config_LDADD=../ui/librccgtk.la @GTK1_LIBS@ +rcc_gtk_config_CPPFLAGS = @GTK1_INCLUDES@ -I../src -I../ui +endif + +if HAVE_GTK2 +bin_PROGRAMS+= rcc-gtk2-config +rcc_gtk2_config_SOURCES = rcc-gtk-config.c +rcc_gtk2_config_LDADD=../ui/librccgtk2.la @GTK2_LIBS@ +rcc_gtk2_config_CPPFLAGS = @GTK2_CFLAGS@ -I../src -I../ui endif EXTRA_DIST= input-russian.txt rcc.xml rcc-example.xml mpg123-rcc.patch @@ -13,4 +21,4 @@ EXTRA_DIST= input-russian.txt rcc.xml rcc-example.xml mpg123-rcc.patch test-russian: example cat input-russian.txt | ./example -INCLUDES = -I../src -I../ui @GTK_INCLUDES@ +AM_CPPFLAGS = -I../src -I../ui diff --git a/examples/rcc-gtk-config.c b/examples/rcc-gtk-config.c index a46350f..7758f09 100644 --- a/examples/rcc-gtk-config.c +++ b/examples/rcc-gtk-config.c @@ -10,6 +10,9 @@ static rcc_class classes[] = { { "fs", RCC_CLASS_FS, "LC_CTYPE", NULL, "FileSystem Encoding", 0 }, { "oem", RCC_CLASS_STANDARD, NULL, NULL, "Zip OEM Encoding", 0 }, { "iso", RCC_CLASS_STANDARD, NULL, NULL, "Zip ISO Encoding", 0 }, + { "ftp", RCC_CLASS_STANDARD, NULL, NULL, "FTP Encoding", 0 }, + { "http", RCC_CLASS_STANDARD, NULL, NULL, "HTTP Encoding", 0 }, + { "ssh", RCC_CLASS_STANDARD, NULL, NULL, "SSH Encoding", 0 }, { "out", RCC_CLASS_STANDARD, "LC_CTYPE", NULL, NULL, 0 }, { NULL } }; @@ -47,6 +50,7 @@ int main (int argc, char *argv[]) window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_policy(GTK_WINDOW (window1), FALSE, FALSE, TRUE); gtk_window_set_title (GTK_WINDOW (window1), "LibRCC Config"); + gtk_window_set_wmclass (GTK_WINDOW(window1), "librcc", "libRCC"); gtk_widget_show(window1); box = rccUiGetPage(uictx, NULL); -- cgit v1.2.3