[no subject]

2019-02-20 Thread Igor Korot via gtk-list
Hi, ALL,
This link 
https://developer.gnome.org/gtk3/stable/GtkToolbar.html#GtkToolbar-popup-context-menu
states that the parameter "button" can be "-1".

What is the scenario when this occurs, i.e. it should be the button
number that was clicked IIUC?

Thank you for clarification.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2018-09-22 Thread Радомир Хаџић via gtk-app-devel-list
hello world
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2016-05-01 Thread purushottan patil

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2016-04-17 Thread 田红

Hi:


 ... Hello I am from Chinese
developers when I was with the use
of the volume control when rhythmbox control
software crash occurred by viewing the source code found
rhythmbox is your official GTK in
gtk_volume_button_new () do the following:


(1) Open rhythmbox tap the volume
control appears dispatch volume bar.
You pulled up from 0.
+ Hover for a while. In the
Edit or click the Settings button will appear "mistakes."
   System: ubuntu 14.04

  This is my problem. I hope you can better improve the
GTK libraries. Thanks
  ___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2016-03-18 Thread max . augsburg

Hi All,

I try to translate the code examples of the python gtk tutorial. But trying to translate the GMenu example, I cannot find the modue Gtk3::Gio::Menu() or the module Gtk3::Gio::SimpleAction. Perhaps someone could help me. Thanks a lot!

 

Ps.: I hope this eMail doesn't come twice... I sended it befor without subscribing


 

 
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2016-02-04 Thread Matthew Allen
So I'm working on this code: GPrinter.cpp

(and it's header

).

And GPrinter::Print when I call gtk_print_operation_run I get a printer
selection dialog (on Ubuntu Linux), where I select a valid printer and
click OK. At which point I'm expecting it to call the begin-print signal so
I can calculate the number of pages. But instead nothing happens... at
all.. it just kinds waits forever.

If I break the app at that point I get this stack trace:
#0  0x76a6312d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x751effe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x751f030a in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x764990ed in print_pages (op=op@entry=0x1206b30,
parent=parent@entry=0xfde0a0, do_print=,
result=result@entry=GTK_PRINT_OPERATION_RESULT_APPLY)
at /build/gtk+2.0-3ongxb/gtk+2.0-2.24.23/gtk/gtkprintoperation.c:2958
#4  0x7649a14c in IA__gtk_print_operation_run (op=0x1206b30,
action=, parent=0xfde0a0, error=0x7fffce18)
at /build/gtk+2.0-3ongxb/gtk+2.0-2.24.23/gtk/gtkprintoperation.c:3132
#5  0x77502431 in GPrinter::Print (this=0x12cbae0,
Events=0x12bddb0,
PrintJobName=0x914ec9 "InScribe", Pages=-1, Parent=0xe441c0)
at src/linux/Lgi/GPrinter.cpp:200
#6  0x0057bc59 in ScribeWnd::ThingPrint (this=0xe441c0,
m=0x1258cc0,
Printer=0x12cbae0, Parent=0x0, MaxPages=-1) at Code/ScribeApp.cpp:5949
#7  0x0057e7ef in ScribeWnd::OnCommand (this=0xe441c0, Cmd=40005,
Event=0, WndHandle=0xee3f00) at Code/ScribeApp.cpp:6550
...snipped unimportant stack frames...


Is there something I'm missing here?

Why is the GtkPrintBegin signal not called?

Regards
Matt
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2015-05-11 Thread Bernard CANTALOUBE
I have a problem with window VISTA:

 

All the libraries API-MS-WIN-CORE. are missing.

 

A stand alone application made with GTK can't work withou them.

 

Is there a solution ?

 

Thanks. 
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2015-02-06 Thread zeta

Hi there

I am new on the community, I am a bachelor student at BUAP, I love gome
since I meet it, and know I want to contribute in something, I was
writing an application with gtk and when I want to create some cool
charts I see that there isn't a library for do it, or I don't find one
that has native integration with gtk, so I decide to write one, but
first I want to know If anyone is doing one, or if someone can guide me
where to start, I think that I should do with the gtk draw area widget
and cairo, but I'm not sure.

Regards

Miguel Angel
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2014-10-18 Thread Ayushi Mrigen
Hi,
I started working with gtk+. I cloned gtk+ the repository from git, but
config.h is missing. And hence, I am unable to compile. How can I solve
this?

Thank you!
-- 
*Ayushi Mrigen*
*Second year student,*
*Department of Mathematics,*
*IIT Kharagpur.*
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2014-01-19 Thread Brian Manning
Overview of changes in Glib::Object::Introspection 0.019 [2014-01-18]


* Fix off-by-one error in internal string comparison
* Fix spelling of two internal functions

View the source in the Gtk2-Perl git repo at:

  http://git.gnome.org/browse/perl-Glib-Object-Introspection/tag/?id=rel-0-01-9
  (http://bit.ly/1msolJY)

Or download the source release at:

  
http://downloads.sourceforge.net/gtk2-perl/Glib-Object-Introspection-0.019.tar.gz
  (http://bit.ly/1idRaJW)

Glib::Object::Introspection uses the gobject-introspection and libffi
projects to dynamically create Perl bindings for a wide variety of
libraries.  Examples include gtk+, webkit, libsoup and many more.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2013-10-17 Thread Bernhard Schuster
How to implement a tls/ssl based client with a server side cert? The
documentation on that topic is not helpful/confusing (thus posting to both
lists).

** (democlient:405): WARNING **: 1 Error 1 - Error performing TLS
handshake: An unexpected TLS packet was received.

Can somebody please have a look at the below chunk, as the documentation is
not really verbose about how to implement it.  I also tried a
GTlsClientConnection based implementation, but the issue reamins (very same
error). The code below is loosly based on one of the test cases of
glib-networking.

Thanks a lot in adavance!

 socketclient = g_socket_client_new ();
 g_socket_client_set_tls (socketclient, TRUE);
 g_socket_client_set_tls_validation_flags (socketclient,
G_TLS_CERTIFICATE_GENERIC_ERROR);
 con = g_socket_client_connect_to_host (socketclient,
127.0.0.1,
1234,
NULL,
error);
 if (error) {
  g_warning (1 Error %i - %s, error-code, error-message);
  g_error_free (error);
  return EXIT_FAILURE;
 }

 GIOStream *tlscon = g_tcp_wrapper_connection_get_base_io_stream
(G_TCP_WRAPPER_CONNECTION (con));

// do some IO stuff



Bernhard
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2012-12-23 Thread yao bo
Hello every one here!
I am a fresh man from Xi'an Jiaotong University,China.In our country,many
people use QT rather than GTK+.I think the reason is that gtk+ didn't have
Chinese documentations.I want to help to translate some of the gtk+
documentations and website into Chinese,but what should I do first?
Do you have some suggestions or specific ways to do this?For example,how
can I upload translating results?
Thank you for your attention.

-- 
姚博
Yao Bo
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2012-07-05 Thread langston 单

 http://www.shgpromotionalforum.org/mlllka.html?kaa=rlnykj  
  ___
gtk-i18n-list mailing list
gtk-i18n-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list


[no subject]

2012-06-20 Thread Kevin Mahoney
http://remyalex.com/better_in_June.php
  
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2012-02-27 Thread kususe

Hello to everybody. want to use glib.timeout_add(i,f) in a python script. I have a code like this:if (condition): glib.timeout_add(i,f)def f: (...) i = () (condition) return TrueEven the value of "i" is different each time I call "f", glib.timeout_add(i,f) call "f" always with the same value of "i".Suggestions?Thanks in advance,

---Valore legale alle tue mailInterfreePEC - la tua Posta Elettronica Certificatahttp://pec.interfree.it---
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2012-01-04 Thread Suresh Stephen

Happy new year! Happiness is your life. 
http://www.odenvoyage.ironie.org/sites.m.php?ligoogleId=06fi5
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2011-12-16 Thread Suresh Stephen
Be healthy with our help!... 
http://www.odenvoyage.ironie.org/p.google.php?foID=93af8
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2011-11-22 Thread YangXi
http://unitedpostcard.com/productphotos/ytnjfvk.htm
  ___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2011-11-17 Thread YangXi
http://ourdogbrock.com/review/upload/2011/06/12/thumbnail/zpnwgklh.htm
  ___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2011-11-12 Thread YangXi
http://theturnoverdoctor.com/wp-content/themes/carrington-business/_carrington-build/module-options/custom-classes/idmaild.htm?iwyp=iwyp
  ___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2011-11-09 Thread Rui Cheang
http://www.culturalcornerstones.org/wordpress/wp-content/themes/modern/inddex.html
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2011-11-08 Thread Rui Cheang
http://jeremymitchellpelt.com/wp-content/themes/twentyeleven/indeex.html
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2011-11-05 Thread Rui Cheang

http://www.troywitt.com/galleries/themes/hybrid/inbex.html
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2011-09-08 Thread Anders Broman
 Hi,
 Has the provision of binary bundles for Windows 32 bit and 64 bit been
 discontinued?
 For the moment, yes. We are still debating what is the best way of providing 
 those again, some day.

As we would prefere to use binaries endorsed/provided by the project I guess 
it's +1 for moving to another tollkit :-(
I think we may have prof-of-concept Qt code. A lot of work I had hoped could be 
avoided.

Best regards
Anders Broman

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2011-08-23 Thread YangXi
http://pokercinho.com/wp-content/uploads/vfsng.htm
  ___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2011-04-20 Thread Razvan
http://krstarenje.kr.funpic.org/inside.html
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2011-03-02 Thread Shailendra Jain
http://searchafriend.co.cc/07h1
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2011-02-21 Thread angel kingdom
Hello,

I want to store many files with .txt extension and a dictionary which is in
xml format into a database - postgresql.

Can anyone suggest me way to do it.
Waiting for your replies..
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2010-12-20 Thread abhi
http://cyqixywi.110mb.com/kuluwumu.html
DeployY ourD eter mina tionO nline


  
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2010-11-15 Thread Thomas Funk
Hi to all,
I try to set the active row in a treeview(treesort) to another row than 0. This 
works but the row 0 is always highlighted (light).
Here's my code:
my $row_path = $theme_center_list_real_hash{$row_name}; # e.g 4:2
my $tree_model = $tree_view_object-get_model();
my $treeiter = $tree_model-get_iter_from_string($row_path);
my $treepath = $tree_model-get_path ($treeiter);
my $treeselection = $tree_view_object-get_selection();
$treeselection-select_iter($treeiter);

If I printout the path list with
@paths = $treeselection-get_selected_rows;
only the selected row I want is listed. So I guess the light higlighted row is 
an old display state.

How can I clear this state?
After clicking to another row it will be cleared but at the beginning when the 
program starts it looks unpleasantly.

Thanks in advance,
Thomas
___
Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


[no subject]

2010-09-07 Thread anonymous user
http://bit.ly/9aga1E
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2009-09-01 Thread Ken Resander
Hi Tadej,

Thanks for your ultra-fast response. It almost came before I had written the 
question.

Yes, indeed gtk_widget_modify_font did the trick!

So simple, but I did not know about this call.

Again many thanks.

Ken



Hi.

Have you tried to use gtk_widget_modify_font on your text view? I
think this should do the trick.

Tadej
-

Here is my attempt:

void changefont ( GtkWidget * widget , PangoFontDescription * tofd )
   {
   PangoContext * context = gtk_widget_get_pango_context ( widget );
   PangoLayout * layout = pango_layout_new ( context );
   pango_layout_set_font_description ( layout, tofd );
   }

Then at start of textview:

   GtkWidget * e = gtk_text_view_new ( ) ;
   GtkTextBuffer * buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (e));
   changefont ( e , fixedfontfd ) ; // fixed font previously defined in my code
   gtk_text_buffer_set_text (buf, inittext, -1);

The font does not change. Is the above wrong?
How to do this?

I have very little experience with GTK fonts. Help would be very much 
appreciated.




  New Email names for you! 
Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2009-08-31 Thread Shawn Bakhtiar



Hi all,

I have been working on developing an in-house ERPish application. I am using 
GTK as the front end, and with much scope creep, two years later, we are about 
to go production. We started on the Linux desktops but they lost out to the 
IMAC (all back end is still Linux).

while researching whether Metacity themes work on OS X (perhaps I'm doing this 
part a bit late),  In came across this link: 
http://markmail.org/message/wq35kgkjds37g5mv#query:gtk%20os%20x%20John%20Ralls+page:1+mid:iticcxa5wo4ce4nh+state:results

Without the work that jraills has inherited (please let me know how I can help) 
I would be lost. I have mostly relied on what the OS X project has done to make 
this thing run.

I am building the entire framework using jhbuildd

I am able to create a fully self sustained bundle, drag and drop.

But I must reflect jraills concern, if there is no work being done on the 
back-end, and at some point, my applications interface is going to be 
problematic... well yikes... I can't have that. 

There is not much longer before we put this thing on the desktop and it starts 
generating orders, PO's etc it is already the main inventory application.

I have never done anything like this but I see all the FIXME in the 
gdkwindow-quartz.c , a functionality I was hoping to use that does not exists.

I guess my question is, where did the rest of that mail chain go?
Who is going to fix these?
If the answer is no one, how do we get involved? Just fix it and submit patches?


concerned GTK OS X user.





 EMAILING FOR THE GREATER GOOD
Join me___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2009-06-22 Thread Gerardo Di iorio

-- 
http://www.gerardodiiorio.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2009-06-22 Thread SRAVAN KUMAR malyala
sravankumar...@gmail.com
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2009-06-18 Thread Freddie Unpenstein
I'm Iooking for the current gtk/gio/gnome best practice for working with 
CD/DVD's... In particular, figuring out how much stuff I can cram onto one, and 
then cramming it on.

There's a whole bunch of different disk sizes, formats, filesystem options, 
filesystem limitations, etc., and I need to know for a given disk exactly how 
much space I have to use, and for that matter, exactly how much space a given 
set of files will take, so that I can pack on as much of my data set as 
physically possible.

I would like to be able to sample a blank disk to gets its size/etc., then 
based on user selection of various features and options, figure out how much 
space I have to work with, how I need to package the data set (along with its 
simple browser and support files), and then build and burn off the image (or 
more likely images, because it won't fit on one disk).

Any help would be appreciated.  I've been putting off this job while, because I 
really don't know where to look.  Everything I've found so far points to 
re-inventing a lot of existing wheels, which I'd really rather avoid, mostly 
because I don't really know what I'm doing.


Fredderic


International Movers
Click here for great quotes from top international movers!
http://tagline.excite.com/fc/FgElN1g2MnGwQWGIxLxP1uME0LVsLg6EegmBbPZuKfFKtnqOlu8WXm8KMik/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2009-03-09 Thread rani rajaram
Hi all,
How to install devnagiri font  display in gtk?
rani
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2009-03-05 Thread rani rajaram
Hi all,
How to display text in different languages using pango in gtk?

Kindly help.
rajaram
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2009-02-12 Thread Eade, Sean (SCR US)
Hi All,

I am trying to build the GTK+ libraries with DirectFB support on Linux
(my goal is to do it for ARM - but I am starting with x86 first)

I am following this procedure:

http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB

But when I try to make the GTK+ libraries I am getting the following
error:

gdktestutils-directfb.c: In function 'IA__gdk_test_simulate_key':
gdktestutils-directfb.c:178: error: 'DFBWindowEvent' has no member named
'flags'
gdktestutils-directfb.c:178: error: 'DWEF_NONE' undeclared (first use in
this function)
gdktestutils-directfb.c:178: error: (Each undeclared identifier is
reported only once
gdktestutils-directfb.c:178: error: for each function it appears in.)
gdktestutils-directfb.c: In function 'IA__gdk_test_simulate_button':
gdktestutils-directfb.c:244: error: 'DFBWindowEvent' has no member named
'flags'
gdktestutils-directfb.c:244: error: 'DWEF_NONE' undeclared (first use in
this function)
make[4]: *** [gdktestutils-directfb.lo] Error 1
make[4]: Leaving directory `/usr/gtkfb/src/gtk+-2.15.3/gdk/directfb'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/gtkfb/src/gtk+-2.15.3/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/gtkfb/src/gtk+-2.15.3/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/gtkfb/src/gtk+-2.15.3'
make: *** [all] Error 2

Does anyone know what is going on here?

 

Thanks,

Sean.

 

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2009-01-20 Thread Arne Pagel
Hello,
I use a gtk-status-bar where i want to center the label.

Following code worked:
gtk_misc_set_alignment(GTK_MISC(GTK_STATUSBAR(gui.statusbar)-label),0.5,0.5);

But since I updated to the new gtk-download-bundle (for win32)
I get following error-messages:
(config.exe:5612): GLib-GObject-WARNING **: invalid cast from `GtkFrame' to 
`GtkMisc'
(config.exe:5612): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion 
`GTK_IS_MISC (misc)' failed

Has somone an Idea what could be wrong?

regards
  Arne
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2008-07-26 Thread mehdi dadkhah
hello
I am a graphic programmer in Linux system
Please help me : How can i create a new ghraphic area(for example a srceen 
saver) in GTK with setting color and resolution by different values(for example 
: color:16 bit, resolution: 1024*768) and change screen area to maximize or 
restore to default size?
please send me whitch commands are used in this problem by an example.
thnaks
sincerely your's
M.Dadkhah



  
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2008-06-05 Thread Jean-Philippe Chancelier


Hi all,

The link at the end of this mail gives an example of Gtk+ code 
that can be used to redirect standard output to a GtkTextView. 
I have changed the original code of Claudio Polegato to 
replace gdk_input_add by g_io_... functions. 

The code seams to work correctly on Linux but 
do not work (blocks) when run on Windows or with Wine 
on Linux. 
Any hints ? 
Best Regards

P.S: code location: http://cermics.enpc.fr/~jpc/redirect_stdout_new.c








___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2008-02-29 Thread ying lcs

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2008-01-12 Thread Daniel Fetchinson
I originally sent this post to the gnome list but nobody replied. I'll
try my luck here this time, hopefully it's not too OT.


I'm using stalonetray http://stalonetray.sf.net/ as my system tray and
can't get the gnome battery charge monitor applet show up on it. I'm
also using nm-applet and that shows up all right. Actually stalonetray
claims to be freedesktop.org compliant so I thought the battery applet
would also work but so far I had no luck. After launching stalonetray
I launch /usr/libexec/battstat-applet-2 but the icon doesn't show up
on the tray.

What am I doing wrong?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2007-09-28 Thread omar . crea
Hi everybody.
How can I switch two contents in the same main window?
I have a tabbed application, and I want to create a searching page where, when I
click the find button, it switches and showes the search results, and when I
click the Back button it returns to the searching page again (for a new
search).
Thanks in advance.

Omar


This message was sent using IMP, the Internet Messaging Program.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2007-05-07 Thread Peter Netisk
Hello,

I am trying to have a background pixmap in GTK text-fields, e.g. in the 
background of
Gedit. Is this possible (with editing gtkrc?)?

Regards,
Peter

X-Mail.net Communications Center



___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2007-04-13 Thread Stephen Beck
ime starting to play with adding a graphics window to an existing
app. I would like to retain the command line interface for the time being.
i need about 5 lines of 50 columns. ime thinking of somethink that
looks like an xterm window. can you get me started on a 'multi line text 
entry box' ?
___
gtk-app-devel-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2007-03-19 Thread sunzysjzri
hi, 
I want to know how to keep a unique instance of gtk application?
Many thanks

sun
2007-03-19
[EMAIL PROTECTED]
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

[no subject]

2007-02-03 Thread nostradamo
I have installed gtk2 on windows. but if i want to compile with g++ it does 
niot find the header files.
so my be the paths are not correct. 
I tried it to modify several times but without results.

how does i do that the g++ can find it correct?

best greetings 
Ralf___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2006-11-30 Thread FreeMindeR
How do I configure my compiler (Codeblocks, for example) to use GTK+ on  
Windows?

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2006-11-14 Thread Shyjumon N.






hi
 Can any body tell me what is the reason for the following error.
I am using gtk_widget_hide function.


(togg:2770): Gtk-CRITICAL **: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed



With regds,



Shyjumon N
Mobile: +91-9945006965






The information contained in this e-mail message and in any annexure is 
confidential to the  recipient and may contain privileged information. If you 
are not the intended recipient, please notify the sender and delete the message 
along with any annexure. You should not disclose, copy or otherwise use the 
information contained
in the message or any annexure. Any views expressed in this e-mail are those of 
the individual sender except where the sender specifically states them to be 
the views of SoCrates Software India Pvt Ltd., Bangalore.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2006-10-26 Thread ferri_marllo


Hi!!
I need help!
i plot a function using gtkbut now i want to insert a cursor,for move in the
graph.
How can i do it??
thanks a lot

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[no subject]

2006-09-14 Thread Bill Cunningham
test


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[no subject]

2006-08-07 Thread karuna karan

Hi all,

I build firefox 1.5.0.3 over gtk+-2.10 with Directfb Backend. But getting 
crashed while running..

I found that its because of the function g_signal_emit.

can anyone tell me what this does and where it is defined..?

Thanks,
Karunakaran A.

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[no subject]

2006-07-26 Thread Johannes Behr
Hi,

I would like to port a OpenGL-based plugin to Firefox and
need some kind of GUI-toolkit for the right-button popups and
some additional log-views.

Since firefox on Linux uses gtk I thought utilizing gtk for
the plugin-GUI would be a good choose.

Is this assumption correct? Comments?

Therefore I searched for some kind of example or docs
how to write gtk/opengl plugins for firefox but didn't
find anythink. Is there any usefull doc or even a simple
example?

One more question: What is the right way to do
OpenGL in gtk2 apps/plugins.

There is gtkglarea and gtkglext and both are
active developed as far as I see.

What is the right interface for gtk/firefox plugins?

best regards,
   Johannes

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Subject Prefix in the mailing list

2006-07-03 Thread Andreas Stricker
Sander Marechal schrieb:
Adding prefix makes subjects less readable.

Ack. Especially because it's a /prefix/: The important part is moved
right and cropped in longer subjects.

Just filter it by Sender header and put it in different folder.
If you use IMAP it can be done on server side (eg. using sieve if using
cyrus imap server). If not, you can do it on client side (most non-
ancient MUAs support this).
 
 
 This works, until someone cross-post something to several lists. Then
 your filters break and everything end up in the same folder anyway :-)
 

Recent mailers (and sieve too) allows to filter the list-id header.
This works better than by receiver/sender.

Summary: Don't use a list prefix in subject, please.

Cheers, Andy
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Subject Prefix in the mailing list

2006-06-30 Thread Van H Tran
Hi all,
I'm just wondering if gtk-app-devel-list mailing list
should include some prefix, something like
[gtk-app-dev] before each subject? 

I'm subscribed to a few mailing lists and it can get
quite confusing sometimes.

TranVan Hoang,
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Subject Prefix in the mailing list

2006-06-30 Thread Olaf Frączyk
On Fri, 2006-06-30 at 04:34 -0700, Van H Tran wrote:
 Hi all,
 I'm just wondering if gtk-app-devel-list mailing list
 should include some prefix, something like
 [gtk-app-dev] before each subject? 
 
 I'm subscribed to a few mailing lists and it can get
 quite confusing sometimes.
 
 TranVan Hoang,
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 
 
Hi,

Adding prefix makes subjects less readable.

Just filter it by Sender header and put it in different folder.
If you use IMAP it can be done on server side (eg. using sieve if using
cyrus imap server). If not, you can do it on client side (most non-
ancient MUAs support this).

Regards,

Olaf
-- 
Olaf Frączyk [EMAIL PROTECTED]

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Subject Prefix in the mailing list

2006-06-30 Thread Sander Marechal
Olaf Frączyk wrote:
 On Fri, 2006-06-30 at 04:34 -0700, Van H Tran wrote:
 Hi all,
 I'm just wondering if gtk-app-devel-list mailing list
 should include some prefix, something like
 [gtk-app-dev] before each subject? 

 I'm subscribed to a few mailing lists and it can get
 quite confusing sometimes.

 Hi,
 
 Adding prefix makes subjects less readable.
 
 Just filter it by Sender header and put it in different folder.
 If you use IMAP it can be done on server side (eg. using sieve if using
 cyrus imap server). If not, you can do it on client side (most non-
 ancient MUAs support this).

This works, until someone cross-post something to several lists. Then
your filters break and everything end up in the same folder anyway :-)

-- 
Sander

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

(no subject)

2006-04-15 Thread Adi Roiban
i have to apply some image processing algorithms using gdk. They all involve 
only operation on colormap and not directy on the pixels.
Can you give me some tips about what stuctures should i used.

i tried using a GtkImage whick store information in gdk-pixbuf and then convert 
the pixbuf into pixmap and then set a colormap to the pixmap, but in this way 
modifying the colormad does not modify the pixmap.

GdkPixbuf *pixbuf;
GdkPixmap *pixmap;
GdkColor color;
GdkVisual *visual = gdk_visual_get_best() ;
GdkColormap *colormap =gdk_colormap_new (visual,FALSE);

//image_active is a GtkImage create with gtk_image_new_from_file
pixbuf = gtk_image_get_pixbuf ( GTK_IMAGE(image_active));

for (i=0; i  colormap-size; i++){
if (colormap-colors){
 colormap-colors[i].red=0;

}
}

pixmap = gdk_pixmap_new ( NULL, 
gdk_pixbuf_get_width(pixbuf),
gdk_pixbuf_get_height (pixbuf),
3*gdk_pixbuf_get_bits_per_sample(pixbuf));
gdk_drawable_set_colormap (pixmap, colormap);

gdk_draw_pixbuf ( pixmap, NULL, pixbuf, 0, 0, 0, 0, 
gdk_pixbuf_get_width(pixbuf), gdk_pixbuf_get_height 
(pixbuf),
  GDK_RGB_DITHER_NORMAL,0,0);




gtk_image_set_from_pixmap ( GTK_IMAGE(image_active), pixmap, NULL);
gtk_widget_show (window_colormap);


many thanks
Adi Roiban

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2006-02-15 Thread sadhees kumar
Friends,

In my GTK application, If  no action(event) is taken place in
the screen, I need to turn OFF the backlight of an TFT monitor. If any
key pressed, or mouse movement occured, I need to turn ON the
backlight.

I have the API for toggling the backlight. My problem is , how to 
identify the idle state of the screen?

Can you help me.

Thanks in advance..


--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


(no subject)

2006-02-15 Thread ferri_marllo


Hi to everyone!!
I've a big trouble...ok!I had a code of a program that was executed under
MOS-DOS, and now,i made a windows aplication,using gtk+...but in the program i
use the command SYSTEM and now it doesn't work!!
can anyone help me??
Example: strcpy(registro,edit);
 strcat(registro,fichsal);
 system(registro);

  this allows me to edit my fichsal file.
thanks a lot!


___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


(no subject)

2006-01-31 Thread Eisenknapp, Josef

Hello again.


My problem today is, that i want to show to output of a shellscript in a
Gtk2::Texview. To start the script i'm using the following.

my $fh = new IO::Pipe;
$fh-reader(./print_to_stdout.sh);

my $helper_tag = Gtk2::Helper-add_watch(fileno $fh, 'in',sub{
watch_callback($fh)
});

The script looks as follows:

#!/bin/bash

printf bloedsinn !\n
sleep 1
printf GFIS_STATUS Eine Gui status Meldung 1\n
sleep 1
printf GFIS_STATUS Eine Gui status Meldung 1.6\n
sleep 1
printf GFIS_WARNING Eine Gui Warning Meldung 2\n
sleep 1
echo GFIS_STATUS Eine Gui status Meldung 3 
sleep 1
echo GFIS_WARNING Eine Gui Warning Meldung 4
#sleep 1
echo noch mehr bloedsinn !\n
echo
echo GFIS_STATUS Eine Gui status Meldung 5
#sleep 1
echo GFIS_WARNING Eine Gui Warning Meldung 6
#sleep 1
echo GFIS_STATUS Eine Gui status Meldung 7
#sleep 1
echo GFIS_WARNING Eine Gui Warning Meldung 8
---

The script will have more functionality than this example of course.
As you can see I tried to run the script with sleeps between the prints/echos 
and without them.
When i run it with the sleep commands everything looks fine, but if i omit the 
sleeps, my callback is't called any more.

So here are my questions.
- Can a avoid that the echos/printfs are ignored by the Gtk2::Helper?

- If not, is there another possibility to get the output of a shell script to 
a Gtk2::textview or another text viewing widget?

- And last: Is it possible to watch a file and run a callback everytime a line 
is appended to the file? I tried to do so with a
Gtk2::Helper, but ended up with 100% CPU consumption becaus the callback was 
called everytime it was save to read the file.



This is my callback function. As you can see i want to display GFIS_WARNINGS in 
another color/style than GFIS_STATUS messages.
All other messages sould be ignored.
-
sub watch_callback{
print status callback called\n;
my ($fh) = @_;

#my @lines = $fh-getlines;
#print @lines;

my $line;
$fh-sysread($line,1000);
chomp $line;
print $line .\n;
if($line){
if($line =~ /^GFIS_STATUS/){
$line =~ s/GFIS_STATUS//;
$line =~ s/^\s+//g;
$status_buffer-insert_with_tags_by_name 
(($status_buffer-get_end_iter()), $line, 'status');
$status_buffer-insert_with_tags_by_name 
(($status_buffer-get_end_iter()), \n, 'status');
}
elsif($line =~ /^GFIS_WARNING/){
$line =~ s/GFIS_WARNING//;
$line =~ s/^\s+//g;
$status_buffer-insert_with_tags_by_name 
(($status_buffer-get_end_iter()), 'WARNING: ', 'warning');
$status_buffer-insert_with_tags_by_name 
(($status_buffer-get_end_iter()), $line, 'warning');
$status_buffer-insert_with_tags_by_name 
(($status_buffer-get_end_iter()), \n, 'warning');
}   
else{
print just a message\n;
}
}
else{
1 while wait != -1 ; 
print remove helper\n;
Gtk2::Helper-remove_watch($helper_tag);
}

return TRUE;
}



Thanks again for your help!


Regards
Josef
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


(no subject)

2006-01-10 Thread Fernando Apesteguía
Yes, in fact, callback function does. You cand do something like:

my_function(GtkWidget *mycontrol)

Best regards!!!

-- Forwarded message --
From: kalyani sathiyamoorthy [EMAIL PROTECTED]
Date: 10-ene-2006 7:39
Subject: (no subject)
To: gtk-app-devel-list@gnome.org

is it possible to pass a widget control as a arugument
to a function
regards
kalyani



__
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

(no subject)

2006-01-09 Thread kalyani sathiyamoorthy
is it possible to pass a widget control as a arugument
to a function
regards
kalyani



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: (no subject)

2006-01-09 Thread Martyn Russell
On Sat, 2006-01-07 at 01:49 +0100, [EMAIL PROTECTED] wrote:
 hi all,
 
 I have to show an autodestroying popup message while a computation is running.
 I tried with gtk_window and gtk_dialog but they don't show the 
 label message. (Dialog shows the label after gtk_dialog_run but this locks my 
 procedure...)
 I'm using gtk2.8.
 
 Do you have some ideas how to write such popup in a few rows?

Most likely, the reason being that gtk_dialog_run blocks until the
dialog gets a response (the documentation points this out):

Blocks in a recursive main loop until the dialog either emits the
response signal, or is destroyed. 

If you want a dialog that does not block, you can use something like:

g_signal_connect_swapped 
(dialog, response,
 G_CALLBACK (gtk_widget_destroy), NULL);

If you are STILL having problems because your procedure has tight loops
and/or the gtk main loop is not getting a chance to iterate pending
events, you might want to look into using:

while (gtk_events_pending ())
gtk_main_iteration ();

In your procedure.

-- 
Regards,
Martyn

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2006-01-06 Thread [EMAIL PROTECTED]
hi all,

I have to show an autodestroying popup message while a computation is running.
I tried with gtk_window and gtk_dialog but they don't show the
label message. (Dialog shows the label after gtk_dialog_run but this locks my 
procedure...)
I'm using gtk2.8.

Do you have some ideas how to write such popup in a few rows?

thanks,
DB.

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-12-19 Thread [EMAIL PROTECTED]
ciao
  First of all I make excuses myself for my English not too much corrected.  I 
write in order to speak you to you about a problem that I have found with my 
first program written in C with gtk.
I have written the algorithm in order to resolve the puzzle and have set up all 
the graphical interface but when start the simulation does not visualize me in 
real Time the graphic regarding the algorithm that is under.
I enclose the code of my program with the hope that someone can gives some 
council to me.

Regards

Michele

***

#include gdk/gdkx.h
#include gtk/gtk.h
#define DISCHI 64
#include stdlib.h
//variabili e strutture globali

gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag;

gint controllo=0,servizio;
gint disk=64;

gint asta[DISCHI][3];
GtkWidget *event_box[DISCHI][3];
GdkPixbuf *imaPixbuf[DISCHI];
GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI];
GtkWidget *oggettoFinestra;
GtkWidget *vbox3;
GtkWidget *hbox5;
GtkWidget *label3;
GtkWidget *entry1;
GtkWidget *SIMULA;

GtkWidget *ESCI;
GtkWidget *tabella;


enum {
  TARGET_STRING,
  TARGET_ROOTWIN
};

static GtkTargetEntry target_table[] = {
  { STRING, 0, TARGET_STRING },
  { text/plain, 0, TARGET_STRING },
  { application/x-rootwin-drop, 0, TARGET_ROOTWIN }
};


static guint n_targets = sizeof(target_table) / sizeof(target_table[0]);

//prototipi di funzione
int puntatore_testa_colonna(int);

int fineDelGioco(void);

void disegna(void);

void inizializza(void);

void resettaCol(int);

void quick_message (gchar *);

void dohanoi(gint, gint, gint, gint);

void
on_SIMULA_clicked  (GtkButton   *button,
gpointer user_data)
{
GError **ERR2=0;
gint i,j,servizio;
gdouble x2;
gchar *text;

//GtkWidget *entry = lookup_widget (GTK_WIDGET(button), 
ENTRY);
text=(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1));
disk=atoi(text);

g_print(\n\ndisk=%d\n\n,disk);
gint N=disk;
gint DA=0, A=2,USANDO=1;

//Caricamento immagini dinamico
for (i=1;i=disk;i++){

//equazione retta che passa da A(8,64) e B(20,3) per ottenere 
la larghezza dell'anello
x2=-0.2*disk+20.51;
//funzione che carica un pixbuf da un file e lo scala con un 
fattore che decido io.La larghezza e' ottenuta pensando ad un iperbole 
equilatera.

imaPixbuf[i]=gdk_pixbuf_new_from_file_at_scale(ring.png,(320/disk)*i,x2,FALSE,ERR2);
//carico nel widget ringSenzaRef il pixbuf appena creato
ringSenzaRef[i]=gtk_image_new_from_pixbuf(imaPixbuf[i]);
//carico in ring la referenza appena stanziata
ring[i]=g_object_ref(ringSenzaRef[i]);
};


//creazione disegno e struttura dinamico
for (i=0;i=disk-1;i++){
for (j=0;j=2;j++){
//le immagini non possono ricevere eventi percio' le 
inseriremo in un event box
event_box[i][j]=gtk_event_box_new ();
gtk_table_attach_defaults (GTK_TABLE (tabella), 
event_box[i][j], j,j+1,i,i+1);
};
};

resettaCol(1);
resettaCol(2);
inizializza();
disegna();
dohanoi(N, DA, A,USANDO);
//Visualizzazione
gtk_widget_show_all (oggettoFinestra);


};



void
on_ESCI_clicked(GtkButton   *button,
gpointer user_data)
{
gtk_main_quit();
}


//MAIN
int main( int   argc,char *argv[] ){
gtk_init (argc, argv);

  oggettoFinestra = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (oggettoFinestra), (Towers of Hanoi 0.1b));

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3);

  hbox5 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0);

  label3 = gtk_label_new ((Numero Anelli));
  gtk_widget_show (label3);
  gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0);
  gtk_widget_set_size_request (label3, 107, -1);

  entry1 = gtk_entry_new ();
  gtk_widget_show (entry1);
  gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0);
  gtk_widget_set_size_request (entry1, 41, -1);

  SIMULA = gtk_button_new_with_mnemonic ((Simula));
  gtk_widget_show (SIMULA);
  gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0);







  ESCI = gtk_button_new_with_mnemonic ((Esci));
  gtk_widget_show (ESCI);
  gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0);

  tabella = gtk_table_new (3, 3, TRUE);
  gtk_widget_show 

(no subject)

2005-12-19 Thread [EMAIL PROTECTED]
ciao
  First of all I make excuses myself for my English not too much corrected.  I 
write in order to speak you to you about a problem that I have found with my 
first program written in C with gtk.
I have written the algorithm in order to resolve the puzzle and have set up all 
the graphical interface but when start the simulation does not visualize me in 
real Time the graphic regarding the algorithm that is under.
I enclose the code of my program with the hope that someone can gives some 
council to me.

Regards

Michele

***

#include gdk/gdkx.h
#include gtk/gtk.h
#define DISCHI 64
#include stdlib.h
//variabili e strutture globali

gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag;

gint controllo=0,servizio;
gint disk=64;

gint asta[DISCHI][3];
GtkWidget *event_box[DISCHI][3];
GdkPixbuf *imaPixbuf[DISCHI];
GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI];
GtkWidget *oggettoFinestra;
GtkWidget *vbox3;
GtkWidget *hbox5;
GtkWidget *label3;
GtkWidget *entry1;
GtkWidget *SIMULA;

GtkWidget *ESCI;
GtkWidget *tabella;


enum {
  TARGET_STRING,
  TARGET_ROOTWIN
};

static GtkTargetEntry target_table[] = {
  { STRING, 0, TARGET_STRING },
  { text/plain, 0, TARGET_STRING },
  { application/x-rootwin-drop, 0, TARGET_ROOTWIN }
};


static guint n_targets = sizeof(target_table) / sizeof(target_table[0]);

//prototipi di funzione
int puntatore_testa_colonna(int);

int fineDelGioco(void);

void disegna(void);

void inizializza(void);

void resettaCol(int);

void quick_message (gchar *);

void dohanoi(gint, gint, gint, gint);

void
on_SIMULA_clicked  (GtkButton   *button,
gpointer user_data)
{
GError **ERR2=0;
gint i,j,servizio;
gdouble x2;
gchar *text;

//GtkWidget *entry = lookup_widget (GTK_WIDGET(button), 
ENTRY);
text=(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1));
disk=atoi(text);

g_print(\n\ndisk=%d\n\n,disk);
gint N=disk;
gint DA=0, A=2,USANDO=1;

//Caricamento immagini dinamico
for (i=1;i=disk;i++){

//equazione retta che passa da A(8,64) e B(20,3) per ottenere 
la larghezza dell'anello
x2=-0.2*disk+20.51;
//funzione che carica un pixbuf da un file e lo scala con un 
fattore che decido io.La larghezza e' ottenuta pensando ad un iperbole 
equilatera.

imaPixbuf[i]=gdk_pixbuf_new_from_file_at_scale(ring.png,(320/disk)*i,x2,FALSE,ERR2);
//carico nel widget ringSenzaRef il pixbuf appena creato
ringSenzaRef[i]=gtk_image_new_from_pixbuf(imaPixbuf[i]);
//carico in ring la referenza appena stanziata
ring[i]=g_object_ref(ringSenzaRef[i]);
};


//creazione disegno e struttura dinamico
for (i=0;i=disk-1;i++){
for (j=0;j=2;j++){
//le immagini non possono ricevere eventi percio' le 
inseriremo in un event box
event_box[i][j]=gtk_event_box_new ();
gtk_table_attach_defaults (GTK_TABLE (tabella), 
event_box[i][j], j,j+1,i,i+1);
};
};

resettaCol(1);
resettaCol(2);
inizializza();
disegna();
dohanoi(N, DA, A,USANDO);
//Visualizzazione
gtk_widget_show_all (oggettoFinestra);


};



void
on_ESCI_clicked(GtkButton   *button,
gpointer user_data)
{
gtk_main_quit();
}


//MAIN
int main( int   argc,char *argv[] ){
gtk_init (argc, argv);

  oggettoFinestra = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (oggettoFinestra), (Towers of Hanoi 0.1b));

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3);

  hbox5 = gtk_hbox_new (TRUE, 0);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0);

  label3 = gtk_label_new ((Numero Anelli));
  gtk_widget_show (label3);
  gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0);
  gtk_widget_set_size_request (label3, 107, -1);

  entry1 = gtk_entry_new ();
  gtk_widget_show (entry1);
  gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0);
  gtk_widget_set_size_request (entry1, 41, -1);

  SIMULA = gtk_button_new_with_mnemonic ((Simula));
  gtk_widget_show (SIMULA);
  gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0);







  ESCI = gtk_button_new_with_mnemonic ((Esci));
  gtk_widget_show (ESCI);
  gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0);

  tabella = gtk_table_new (3, 3, TRUE);
  gtk_widget_show 

Re: (no subject)

2005-12-19 Thread Tristan Van Berkom

[EMAIL PROTECTED] wrote:
ciao 
  First of all I make excuses myself for my English not too much corrected.  I write in order to speak you to you about a problem that I have found with my first program written in C with gtk.  
I have written the algorithm in order to resolve the puzzle and have set up all the graphical interface but when start the simulation does not visualize me in real Time the graphic regarding the algorithm that is under.

I enclose the code of my program with the hope that someone can gives some 
council to me.


You need to read this:
http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html

[...]
void dohanoi(gint N, gint da, gint a, gint usando){ 
	int i,j,h,parz;


if (N  0){

		dohanoi(N-1,da,usando,a); 
		g_print(\n\nmuovo da %d -- a %d\n,da,a); 
		sleep(1);

for(i=disk-1;i=0;i--){
if(asta[i][da]==0){
parz=i+1;
//salvo in h la posizione dell'anello da rimuovere(il 
valore contenuto nell'array riflette l'indice del vettore che contiene gli 
anelli)
h=asta[parz][da];
//salvo il numero dell'anello in valoreAnelloDrag.Mi 
servira' dopo nella sezione DROP
valoreAnelloDrag=h;
rigaAnelloDrag=parz;
//setto a 0 l'elemento trovato
asta[parz][da]=0;
//rimuovo l'anello dal container
gtk_container_remove (GTK_CONTAINER 
(event_box[parz][da]), ring[h]);
break;
};
};
//se non  trova niente nel for vuol dire che sto 
togliendo il primo anello di un asta
if(asta[0][da]!=0){
h=asta[0][da];
valoreAnelloDrag=asta[0][da];
asta[0][da]=0;
//ora rimuovo il widget anello dall'event box
gtk_container_remove (GTK_CONTAINER (event_box[0][da]), 
ring[h]);
};
for(i=disk-1;i=0;i--){
if(asta[i][a]==0){

asta[i][a]=valoreAnelloDrag;
//aggiungo l'anello al container
gtk_container_add (GTK_CONTAINER 
(event_box[i][a]), ring[valoreAnelloDrag]);
break;
};
};
for (i=0;i=disk-1;i++){
g_print(\n);
for (j=0;j=2;j++){
g_print(%4d,asta[i][j]);
};
};
		dohanoi(N-1,usando,a,da); 
	};

};


What you need to do, is remove sleep (1) and replace it
with return, and then deal with the catastrophy that follows :)

i.e. You need to break down your algorythm into itterations and
return to the event loop so that GTK+ can process events.

You can use something like g_timeout_add() to do this.

Cheers,
  -Tristan
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-12-16 Thread ztuylek


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-12-12 Thread ztuylek


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


gtk_window_set_position [ was (no subject) ]

2005-10-06 Thread Tristan Van Berkom

Kurucz Istvan wrote:

Hy!

I would like that, the visiting-card window is present in the middle of
modaled main window. I no purpose use the gtk_window_set_position 
(MainWindow, GTK_WIN_POS_CENTER_ON_PARENT) funciton, the visiting-card

window always present an other, outside of the main window's aera. What is
the perfect option?


   gtk_window_set_position() should just work, if it doesnt work for you,
chances are that you are useing a light window manager that doesn't implement
that (I've seen this not work on sawfish for example).

Cheers,
 -Tristan
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gtk_window_set_position [ was (no subject) ]

2005-10-06 Thread Kurucz Istvan
Hy!

On Thu, 6 Oct 2005, Tristan Van Berkom wrote:
 gtk_window_set_position() should just work, if it doesnt work for you,
 chances are that you are useing a light window manager that doesn't 
 implement
 that (I've seen this not work on sawfish for example).

Ehhh... GTK+ 2.4.x and Xfce 4.2.x
Other idea?


Thanks:
Kurucz The NeverGone Istvan :) 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: (no subject)

2005-09-27 Thread Przemysław Sitek

Dnia 2005-09-26 21:43, [EMAIL PROTECTED] napisał:

Assignment operator for GtkWidgets?


   GTK is written in C, thus it does not overload any operator.


Is there such a thing, can we do things like MyGtkWidget = SomeGtkWidget?


   You can do that provided those are POINTERS to widgets (actually, 
you never use widget themselves). Unfortunately, as far as I know, 
there's no way to copy instances.


--
  Przemysław Sitek
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-09-26 Thread jalkadir
Assignment operator for GtkWidgets?

Is there such a thing, can we do things like MyGtkWidget = SomeGtkWidget?

I get a segmentation fault when I try todo that!


What am I doing wrong?

class Data{
   public:
  std::string str;
  GtkWidget* obj;
   public:
  Data(){str = ;}
  void setStr(std::string ps){ str = ps;}
  void setObj(GtkWidget* o){obj = o;}
};

//Declare the objects
GtkWidget* MainMenueWin;
GtkWidget* VBx;
GtkWidget* Label;
GtkWidget* Separator;
GtkWidget* btnExit;
GtkWidget* btnCreateAccount;
GtkWidget* btn2;
GtkWidget* btn3;
GtkWidget* btn4;
GtkWidget* btn5;
Data* data;
std::string msg(Under Comstruction ... I am very sorry, but this \
feature has not been implemented yet. Please \
email me for any new updates on this program \
[EMAIL PROTECTED]);

//Callbacks

void Quit(GtkButton* , gpointer);
   gboolean SystemQuit(GtkWidget*, GdkEvent*, gpointer);


void Quit(GtkButton* was_clicked, gpointer user_data){
   gtk_main_quit();
}
gboolean SystemQuit(GtkWidget* widget, GdkEvent* event, gpointer user_data){
 gtk_widget_destroy(widget);
 gtk_main_quit();
 return(TRUE);
 //return(FALSE);
}

int main(int argc, char *argv[]){
   // 1. Initialize the environment
   gtk_set_locale ();
   gtk_init(argc, argv);
   //-liconv -liconv
   // 2. Create Widgets
   MainMenueWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
   //gtk_window_new(GTK_WINDOW_TOPLEVEL);
   VBx = gtk_vbox_new(FALSE,10);
   Label = gtk_label_new(Jaime);
   Separator = gtk_hseparator_new();
   btnCreateAccount = gtk_button_new_with_label(Create);
   btn2 = gtk_button_new_with_label(Unknown);
   btn3 = gtk_button_new_with_label(Unknown);
   btn4 = gtk_button_new_with_label(Unknown);
   btn5 = gtk_button_new_with_label(Unknown);
   btnExit = gtk_button_new_with_label(Exit);
   // Information for GeneralMessage


   data-setObj(MainMenueWin);
   data-setStr(msg);

   // 3. Set attributs
   gtk_window_set_title(GTK_WINDOW(MainMenueWin), Jaime);
   gtk_window_set_policy(GTK_WINDOW(MainMenueWin), //which_window
 FALSE,// allow_shrink
 FALSE,// allow_grow
 FALSE);   // auto_shrink

   gtk_container_set_border_width(GTK_CONTAINER(MainMenueWin),15);
   gtk_widget_set_name(MainMenueWin,Gtk++ One, dos);
   gtk_widget_set_name(VBx,vertical box);
   gtk_widget_set_name(Label,Label);
   gtk_widget_set_name(Separator, Separator);

   // 4. Register CallBacks
   // These three callback fun' are only to exit the application
   g_signal_connect( GTK_OBJECT(btnExit), clicked,
 G_CALLBACK(Quit),NULL);
   g_signal_connect( GTK_OBJECT(MainMenueWin), delete-event,
 GTK_SIGNAL_FUNC(SystemQuit), NULL);
   g_signal_connect(GTK_OBJECT(MainMenueWin), destroy,
G_CALLBACK(SystemQuit), NULL);

   g_signal_connect(GTK_OBJECT(btnCreateAccount), clicked,
G_CALLBACK(GeneralMsg),
reinterpret_castgpointer(data));

   g_signal_connect(GTK_OBJECT(btn2), clicked,
G_CALLBACK(GeneralMsg),
reinterpret_castgpointer(data));
   g_signal_connect(GTK_OBJECT(btn3), clicked,
G_CALLBACK(GeneralMsg),
reinterpret_castgpointer(data));
   g_signal_connect(GTK_OBJECT(btn4), clicked,
G_CALLBACK(GeneralMsg),
reinterpret_castgpointer(data));
   g_signal_connect(GTK_OBJECT(btn5), clicked,
G_CALLBACK(GeneralMsg),
reinterpret_castgpointer(data));

   // 5. Define instance hirarchy (pack the widgets)
   gtk_container_add(GTK_CONTAINER(MainMenueWin), VBx);
   gtk_box_pack_start_defaults(GTK_BOX(VBx), Label);
   gtk_box_pack_start(GTK_BOX(VBx), btnCreateAccount, FALSE, FALSE,1);
   gtk_box_pack_start(GTK_BOX(VBx), btn2, FALSE, FALSE,1);
   gtk_box_pack_start(GTK_BOX(VBx), btn3, FALSE, FALSE,1);
   gtk_box_pack_start(GTK_BOX(VBx), btn4, FALSE, FALSE,1);
   gtk_box_pack_start(GTK_BOX(VBx), btn5, FALSE, FALSE,1);

   gtk_box_pack_start(GTK_BOX(VBx), Separator, FALSE,FALSE, 1);
   gtk_box_pack_start_defaults(GTK_BOX(VBx), btnExit);


   // 6. Show the Widgets
   gtk_widget_show_all(MainMenueWin);

   // 7. Processing loop
   gtk_main();
   //if (data) { delete data; }
   std::cerr  Assalam Alaykum  std::endl;
   return 0;
}

void GeneralMsg(GtkButton* button, gpointer p) {
Data* d;
GtkWidget* label;
GtkWidget* dialog;

try {
dialog = new GtkWidget;
label = new GtkWidget;
d = new Data();
} catch(std::exception e) { std::cout  e.what()  std::endl;}
try{d = reinterpret_castData*(p);}
catch(std::exception e){std::cerr  e.what()  std::endl;}
dialog = gtk_message_dialog_new(
   einterpret_castGtkWindow*(d-obj),  //Parent
   static_castGtkDialogFlags(GTK_DIALOG_MODAL |
  

(no subject)

2005-09-22 Thread jalkadir
Hi folks!

I have been racking my brains trying to find informatio about writing a
callback function that receives two parameters one that indicates the type
of icon I want displayed and the other a character string variable that
holds the different messages this callback function will pass to a a
dialogbox.

This is what the callback function looks like, or I think it would look like:
typedef struct{
  gchar* str; // Message
  GtkWidget* obj; // Icon
   }DATA;
void GeneralMsg(DATA);
void GeneralMsg(DATA d){
   // Create and display a message box with the information in the
DATA variable
   .
}

Is this possible?

TIA
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-09-22 Thread Roger Leigh
[EMAIL PROTECTED] writes:

 I have been racking my brains trying to find informatio about writing a
 callback function that receives two parameters one that indicates the type
 of icon I want displayed and the other a character string variable that
 holds the different messages this callback function will pass to a a
 dialogbox.

 This is what the callback function looks like, or I think it would look like:
 typedef struct{
   gchar* str; // Message
   GtkWidget* obj; // Icon
}DATA;
 void GeneralMsg(DATA);
 void GeneralMsg(DATA d){
// Create and display a message box with the information in the
 DATA variable
.
 }

 Is this possible?

Well, yes, I guess.  Personally, I'd go for a simpler and cleaner
approach:

typedef enum
{
  MY_MESSAGE_FOO,
  MY_MESSAGE_BAR
} MyMessage

And for the callback:

void
my_message_callback (MyMessage message_type,
 GtkWidget *widget)
{
 ...
}

However, if by callback you mean a signal handler, I would create a
signal and class vfunc to do that, and also create a custom marshaller
using glib-genmarshal (VOID:ENUM,OBJECT =
my_cclosure_marshal_VOID__ENUM_OBJECT)

Read the excellent GObject tutorial (in the Glib 2.8 API reference)
for more detail on how to create and emit signals.

Something like

typedef void (*MyMessageFunc)(MyMessage message_type, GtkWidget
*widget);

struct _MyClass
{
  MyMessageFunc *message;
}

And in your class_init:

my_signals[SIGNAL_MESSAGE] =
g_signal_new (message,
  G_OBJECT_CLASS_TYPE(klass),
  G_SIGNAL_RUN_LAST,
  G_STRUCT_OFFSET (MyClass, message),
  NULL, NULL,
  my_cclosure_marshal_VOID__ENUM_OBJECT,
  G_TYPE_VOID, 2, G_TYPE_ENUM, G_TYPE_OBJECT);


Regards,
Roger

-- 
Roger Leigh
Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
Debian GNU/Linuxhttp://www.debian.org/
GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-09-17 Thread Jacob Jennings
I have the latest version of GTK+ installed, that being 2.8, and every
GTK application with a system tray icon doesn't use transparency
correctly. There is a large white area around the icons. What can I do
about this? Here is a screenshot of it in case. Thank you for any help
in the right direction.
attachment: icons.jpg
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-09-02 Thread sudhindra hebbar

 
Respected sir,



 My problem is when i set focus or select region for entry text
ie: gtk_entry_select_region (GTK_ENTRY (enttag),0,  GTK_ENTRY(enttag)-text_length);
it works fine in desktop(pc) but when i implement the same in pda(simputer) this entry will not get highlighted.Please give me solution.

or there is any different method or api so that i can select the perticular entry widget when running application.

Thank You




___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-09-01 Thread sudhindra hebbar

 
Respected sir,


Iam new to gtk and linux.So iam in dilemma that i must use gtk or glade for development.

Which will better in which situation .

And our application needs to be ported to simputer(a pda).which will be better ie going for gtk or glade.


please suggest me the right one.



Thanking You



___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-08-31 Thread sudhindra hebbar

 
Hello sir,

 I am a beginner and need help regarding 

1)Setting decimal precision to entry widget(gtk 2.4).
2)Increasing a font size of text in entry widget.
3)sample code for different entry widget operations.

Please help me in this regard.



___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-08-31 Thread Amit Kumar
I M a beginner and would like to get help on

1. enter text in Entry.
2. Retrive text enteredin Entry.

I m using Elips framework






 

 
		 
Free antispam, antivirus and 1GB to save all your messages 
Only in Yahoo! Mail: http://in.mail.yahoo.com___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-08-31 Thread Olexiy Avramchenko

sudhindra hebbar wrote:

1)Setting decimal precision to entry widget(gtk 2.4).
Use GtkSpinButton widget for the numeric entry. It has 
gtk_spin_button_set_digits(), gtk_spin_button_get_digits() methods for 
specifying precision. Precision value is stored in digits property, so 
you also may want to use g_object_get() and g_object_set() functions to 
access it.



2)Increasing a font size of text in entry widget.
Use gtk_widget_modify_font() function on your widget. It takes 
PangoFontDescription* as a second parameter, you can obtain existing 
font description by GTK_WIDGET(widget)-style-font_desc and use 
pango_font_description_get_size(), pango_font_description_set_size() 
functions to change the size of the font. I suggest you to copy 
GTK_WIDGET(widget)-style-font_desc by pango_font_description_copy(), 
modify it and then stuff back with gtk_widget_modify_font(). Don't 
forget to use pango_font_description_free() on your PangoFontDescription 
object after gtk_widget_modify_font().

Read Pango reference about setting font's size.


3)sample code for different entry widget operations.

What do you mean ? How to set/get a text or smth different ?

http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/[EMAIL PROTECTED] 

Can you please not include stuff like that ^^^ in your posts ?

PS: providing subject line in message is a *right thing*.

You can find info about all functions mentioned above at:
http://www.gtk.org/api/

Olexiy
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-08-31 Thread jalkadir
But I have intalled that package, what I think the problem is is that I
have not tell the compiler  linker about this library, that is because I
don't know how.

Thanks
 [EMAIL PROTECTED] wrote:
 [...]
 In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:23,
  from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
  from C:/Dev-Cpp/include/gtk-2.0/gtk/gtk.h:31,
  from main.cpp:1:
 C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcolor.h:30:19: cairo.h: No such file
 or
 directory
 [...]
 What have I done wrong?!!

 I think its safe to say that you need to install the cairo header files.

 Cheers,
 -Tristan


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-08-31 Thread Tristan Van Berkom

[EMAIL PROTECTED] wrote:

But I have intalled that package, what I think the problem is is that I
have not tell the compiler  linker about this library, that is because I
don't know how.


I dont know about compiling on M$ boxes, but you should probably check
- If there are more than one cairo.pc files installed
- If the cairo.pc file used in your GTK+ build is the correct one
  (specify search paths with PKG_CONFIG_PATH environent variable)

Is cairo configured properly ?

find C:\ -name cairo.h
grep -e -I cairo.pc

when building GTK+ does the -I show up for your cairo include path ?

I hope this was helpfull,
-Tristan

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-08-31 Thread Tor Lillqvist
[EMAIL PROTECTED] writes:
  But I have intalled that package, what I think the problem is is
  that I have not tell the compiler  linker about this library, that
  is because I don't know how.

But that is surely off-topic on this list. Isn't there any
documentation for Dev-Cpp? Isn't there any mailing list for it?

You have to figure out how to pass an -I switch to gcc, just like the
other -I switches you already have that point to the headers for GTK+,
Pango and GLib. You shouldn't need to link with cairo.

--tml

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-08-30 Thread jalkadir
When compiling my program, I get error messages indicating that there is a
problem with  the GTK library. I am sure that GTK+ 2.8.x is not
responsible for this errors, but something in the way I setted up the
Parameters  Compiler options in my 'Dev-Cpp-Project Options-'. This is
what I have in the 'C++ Compiler' box:
-mms-bitfields
-IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/gtk-2.0/include
-IC:/Dev-Cpp/include/atk-1.0 -IC:/Dev-Cpp/include/pango-1.0
-IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include

And this is what I have in the 'Linker' box
-LC:/Dev-Cpp/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -lglib-2.0
-mwindows

Finally, this are the errors I get
Compiler: Default compiler
Building Makefile: ...gtk\Makefile.win
Executing  make clean
rm -f main.o createaccount.o ../exception/exception.o Message.o  Jaime.exe

g++.exe -D__DEBUG__ -c main.cpp -o main.o
-IC:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include  -mms-bitfields
-IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/gtk-2.0/include
-IC:/Dev-Cpp/include/atk-1.0 -IC:/Dev-Cpp/include/pango-1.0
-IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include -g3

In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:23,
 from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
 from C:/Dev-Cpp/include/gtk-2.0/gtk/gtk.h:31,
 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcolor.h:30:19: cairo.h: No such file or
directory
In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:25,
 from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
 from C:/Dev-Cpp/include/gtk-2.0/gtk/gtk.h:31,
 from main.cpp:1:
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: variable or
field `pango_cairo_update_context' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:62: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: `context' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:63: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:66: error: expected `,' or
`...' before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:66: error: ISO C++ forbids
declaration of `cairo_font_options_t' with no type
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:67: error: expected
init-declarator before '*' token

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:67: error: expected `,' or
`;' before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:75: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:75: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:76: error: variable or
field `pango_cairo_update_layout' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:76: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:76: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: `layout' was
not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:77: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: variable or
field `pango_cairo_show_glyph_string' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:82: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:83: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:83: error: `font' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:84: error: expected
primary-expression before '*' token
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:84: error: `glyphs' was
not declared in this scope

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:84: error: initializer
expression list treated as compound expression
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: variable or
field `pango_cairo_show_layout_line' declared void
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: `cairo_t' was
not declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:85: error: `cr' was not
declared in this scope
C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:86: error: expected
primary-expression before '*' token

C:/Dev-Cpp/include/pango-1.0/pango/pangocairo.h:86: error: `line' was not
declared 

Re: (no subject)

2005-08-30 Thread Tristan Van Berkom

[EMAIL PROTECTED] wrote:
[...]

In file included from C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcairo.h:23,
 from C:/Dev-Cpp/include/gtk-2.0/gdk/gdk.h:30,
 from C:/Dev-Cpp/include/gtk-2.0/gtk/gtk.h:31,
 from main.cpp:1:
C:/Dev-Cpp/include/gtk-2.0/gdk/gdkcolor.h:30:19: cairo.h: No such file or
directory

[...]

What have I done wrong?!!


I think its safe to say that you need to install the cairo header files.

Cheers,
   -Tristan
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Subject: Progress Bar question

2005-08-22 Thread zentara
On Mon, 22 Aug 2005 05:53:47 -0400 (EDT)

Date: Mon, 22 Aug 2005 03:48:09 +0300 (EEST)
From: Gergely Korodi [EMAIL PROTECTED]
Subject: Progress Bar question

You need to set up a timer to control the progressbar.

#!/usr/bin/perl
use warnings;
use strict;
use Glib qw/TRUE FALSE/;
use Gtk2 '-init';

my $window = Gtk2::Window-new('toplevel');
$window-signal_connect( delete_event = sub { Gtk2-main_quit; } );
$window-set_border_width(10);
my $vbox = Gtk2::VBox-new( 0, 5 );
my $button = Gtk2::Button-new(Progress);

$button-signal_connect( clicked = \cb1, $window );

$vbox-pack_start( $button, TRUE, TRUE, 0 );

my $progress = new Gtk2::ProgressBar;
my $fraction = 0.0;
$progress-set_fraction($fraction);
$vbox-pack_start( $progress, TRUE, TRUE, 0 );

$window-add($vbox);
$window-show_all;
Gtk2-main;
0;

#
sub cb1 {
  my $timer = Glib::Timeout-add (100,\show_progress);
}

sub show_progress{
$fraction += 0.01;
  if($fraction = 1){return 0}  #stops timer
  $progress-set_fraction($fraction);
return 1;
}
__END__


-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


(no subject)

2005-08-02 Thread goerges papas

Hi,
i n=have installes glib,pgk-config-0.19.When i try to install gtk-2.6.8 and print me the following message:

configure: error: Library requirements (glib-2.0 = 2.6.0atk = 
1.0.1pango = 1.7.0) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a 
nonstandard prefix so pkg-config can find them. 


Do you have any suggestions of why this error occurs? 

		 
Χρησιμοποιείτε Yahoo! 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://login.yahoo.com/config/mail?.intl=gr ___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Subject matter

2005-07-26 Thread Mike.Friedrichs

List,

I am learning GTK+ for implementation on win2k/xp.  I've been studying
the GTK+ architecture, and appears much more appealing than ms windows
architecture. Am I at the right mail list for questions about the GTK+
API's???

---
MikeFriedrichs

This e-mail and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. It is solely intended for the person(s) 
named above. If you are not the intended recipient, any reading, use, 
disclosure, copying or distribution of all or parts of this e-mail or 
associated attachments is strictly prohibited. If you are not an intended 
recipient, please notify the sender immediately by replying to this message or 
by telephone and delete this e-mail and any attachments permanently from your 
system.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


FW: Subject matter

2005-07-26 Thread Mike.Friedrichs

List,

I am learning GTK+ for implementation on win2k/xp.  I've been studying
the GTK+ architecture, and appears much more appealing than ms windows
architecture. Am I at the right mail list for questions about using
GTK+???

---
MikeFriedrichs

This e-mail and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. It is solely intended for the person(s) 
named above. If you are not the intended recipient, any reading, use, 
disclosure, copying or distribution of all or parts of this e-mail or 
associated attachments is strictly prohibited. If you are not an intended 
recipient, please notify the sender immediately by replying to this message or 
by telephone and delete this e-mail and any attachments permanently from your 
system.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: FW: Subject matter

2005-07-26 Thread Daniel Kasak
[EMAIL PROTECTED] wrote:

List,

I am learning GTK+ for implementation on win2k/xp.  I've been studying
the GTK+ architecture, and appears much more appealing than ms windows
architecture. Am I at the right mail list for questions about using
GTK+???

  

Yes.

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-07-23 Thread Manickam Meyyappan
I am developing an application as my project (MSc)which includes drawing graphs.
I am using NPlot library for drawing graphs which includes financial charts such as plotting volume data against dates.
I am using PointPlot class in NPlot to draw the graph, the problem is, eventhough i dont have the saturday and sunday dates in my database, it draws for that dates as well, by setting volume data for that dates to zero.
Can you please suggest me to solve this issue by suggesting some ways to exclude the dates which are not in my database(i think it takes the real world dates other than the one in my database)


		Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone.___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [Dev-C++] (no subject)

2005-07-02 Thread Robert Alatalo
Hello,

  I will hazzard a guess that you are getting the address of the
function rather than the value, but I did notice two things that you
may want to review.  The first is that you don't beed the friend
declarations since you are using a public method.  If you want to
grant special permission to the function then you can access the
'protected' amount directly but if you don't need special permission
(which you don't when you use the getter function) you can drop the
friend.

The big question is that is 'jme' in jme::Money  are you working
inside a separate class or namespace?  The Money class in main doesn't
seem to be referenced as such so it's not clear why it's there.  It's
possible that if you have been making many changes and that's a hold
over than you are really referencing a different item?

Hope this helps,
Robert



On 6/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 In my class, when I use the getter to display the value I get the right
 output, but when I try using the overloaded extractor operator () I get
 some hex value displayed. Here is some of the code:
 --- snip
 Main.cpp
 int main() {
Money money(12.21);
 
std::cout  Value is:   money.getAmount()  std::endl; // 12.21
std::cout  Value is:   money  std::endl; // hex value
return 0;
 }
 
 
 
 The class goes like this:
 ---snip
 Money.hpp
 class Money {
  protected:
float amount;//! This variable holds the numerical value
  public:
//! Constor
Money(const std::string);
 
//!Copy constructor
Money( const Money );
 
//!Destructor
~Money() { std::cout  amount  std::endl;} //=== 12.21
 
// Setters
...
// Getters
const float getAmount() const;
 
// Overloaded operators
.
friend std::ostream operator( std::ostream, const jme::Money );
friend std::istream operator( std::istream, jme::Money );

 } ; //Money
 
 
 
 and the code looks like this
 --- snip
 jme::Money::Money( const std::string x){
 this-setAmount(x); // this metho converts the std::string to a float
 }
 const float jme::Money::getAmount() const {
 return this-amount;
 }
 std::ostream
 jme::operator( std::ostream os, const jme::Money obj ) {
 os  obj.getAmount(); // 0x4b1120
 return os;
 }
 - end of snip
 As you can see when using the member method getAmount() the value
 displayed is in the right format, however the extractor operator is not
 doing the job I thought it would.
 
 Can anybody tell me what I am doing wrong?
 
 TIA
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick
 ___
 Dev-cpp-users mailing list
 [EMAIL PROTECTED]
 TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
 https://lists.sourceforge.net/lists/listinfo/dev-cpp-users

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-06-30 Thread jalkadir
In my class, when I use the getter to display the value I get the right
output, but when I try using the overloaded extractor operator () I get
some hex value displayed. Here is some of the code:
--- snip
Main.cpp
int main() {
   Money money(12.21);

   std::cout  Value is:   money.getAmount()  std::endl; // 12.21
   std::cout  Value is:   money  std::endl; // hex value
   return 0;
}



The class goes like this:
---snip
Money.hpp
class Money {
 protected:
   float amount;//! This variable holds the numerical value
 public:
   //! Constor
   Money(const std::string);

   //!Copy constructor
   Money( const Money );

   //!Destructor
   ~Money() { std::cout  amount  std::endl;} //=== 12.21

   // Setters
   ...
   // Getters
   const float getAmount() const;

   // Overloaded operators
   .
   friend std::ostream operator( std::ostream, const jme::Money );
   friend std::istream operator( std::istream, jme::Money );
   
} ; //Money



and the code looks like this
--- snip
jme::Money::Money( const std::string x){
this-setAmount(x); // this metho converts the std::string to a float
}
const float jme::Money::getAmount() const {
return this-amount;
}
std::ostream
jme::operator( std::ostream os, const jme::Money obj ) {
os  obj.getAmount(); // 0x4b1120
return os;
}
- end of snip
As you can see when using the member method getAmount() the value
displayed is in the right format, however the extractor operator is not
doing the job I thought it would.

Can anybody tell me what I am doing wrong?

TIA
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-06-24 Thread jalkadir
After creating the top window, which contarins a menu, I want to creat
either a dialog box or another window that will house several widgets. My
question is should I create another window or should I create a widget
that will handle the input from the user?

Thanks folks!
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: (no subject)

2005-06-24 Thread Antonio Gomes
Why not create only one more window (or gtk_dialog, you know) and
place your widgets in it? is wouldn't be enough ?!

regards

On 6/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 After creating the top window, which contarins a menu, I want to creat
 either a dialog box or another window that will house several widgets. My
 question is should I create another window or should I create a widget
 that will handle the input from the user?
 
 Thanks folks!
 ___
 gtk-list mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list
 


-- 
Antonio Gomes
E-mail: [EMAIL PROTECTED]
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnologia (Manaus/Br)
NOKIA's Technology Institute
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2005-06-15 Thread Andrey K
can i use tray icon in gtk?

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


  1   2   3   >