summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-24 01:47:52 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-07-24 01:47:52 +0000
commitcfaef1b6c9f33fbaa114628cf513d129bdff3c1c (patch)
treeb5207f980062d0aaaa2515f76983f5386408a298 /examples
parentcd75d05e2a72eff41d6eedb61bc89ca2e1cd185d (diff)
downloadlibrcc-cfaef1b6c9f33fbaa114628cf513d129bdff3c1c.tar.gz
librcc-cfaef1b6c9f33fbaa114628cf513d129bdff3c1c.tar.bz2
librcc-cfaef1b6c9f33fbaa114628cf513d129bdff3c1c.tar.xz
librcc-cfaef1b6c9f33fbaa114628cf513d129bdff3c1c.zip
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
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am12
-rw-r--r--examples/rcc-gtk-config.c4
2 files changed, 14 insertions, 2 deletions
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);