IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.50 MB
Powered by
Channel Info
Network: freenodeChannel: #gtk |
Search in www.irclog.org
Log from #gtk at freenode 2006-07-04
Pages: 1
[13:37]<kjfrejdry>hey; sorry askin, it's a beginner's question, but ill hope, you can help me: I am try to work around with gtk2.0 in C for some days now; How to connect to a Label-widget, if i press a button,that is in the same window ?
[13:38]<kjfrejdry>i want to change the text of the label with pressing a button
[13:40]<kjfrejdry>it has something to do with the last argument of g_signal_connect ?
[20:11]<-- rzns xrs fuyv ("f>Ubuntu =)")
[21:11]<vjdnc_>hi, I have a question about the code at http://www.gtk.org/tutorial/x364.html
[21:11]<vjdnc_>it displays just two buttons, but the window when resizing to about 800x600 takes 100% CPU. Why? I have Athlon XP 2000+
[21:48]<dncdfr>i'm confused how to resize a GtkTextView ... (it's presently in a ScrolledWindow so it can have scroll bars...)
[21:50]<sgzzyus>have you tried $txtbox->set_size_request
[21:50]<sgzzyus>??
[21:50]<sgzzyus>mine is in a scrooled window too
[21:50]<dncdfr>neat ;)
[21:51]<dncdfr>ahh there we go. i just box packed it differently. silly me to have not though of that before. (limited gtk programming experience yup :) )
[21:51]<dncdfr>the scrolled window wasn't set to expand to fill the space available to it
[21:51]<sgzzyus>ah
[21:52]<dncdfr>now the other thing i was trying to figure out is how to get the scrolled window to stay scrolled at the bottom... i figured this was the scroll_to_iter thing
[21:52]<dncdfr>*reading up*
[21:54]<dncdfr>what kinda project are you working on snarius? just wondering ;)
[21:54]<sgzzyus>an IDE for snes development :)
[21:55]<sgzzyus>u?
[21:55]<dncdfr>that's cool
[21:55]<dncdfr>something for a math research project.. urm having to do with substitution systems
[21:55]<dncdfr>the funnest application being the ability to create pretty (potentially fractal-like) images
[21:55]<sgzzyus>mekyla, blep already disassembles pretty well
[21:55]<dncdfr>blep?
[21:55]<sgzzyus>that's what I'm calling it
[21:55]<dncdfr>aah ;)
[21:58]<dncdfr>brb
[22:04]<dncdfr>back.
[22:06]<sgzzyus>yeak, I'm into snes development. I even started a wikibook on it
[22:06]<dncdfr>that's pretty cool, it sounds like fun
[22:06]<dncdfr>not more fun than making pretty pictures with math, mind you :P (i suppose i am an odd one)
[22:10]<dncdfr>ooooooo that's the one i need. (gtk_scrolled_window_get_hadjustment()) :)
[22:40]<dncdfr>blah.
[22:40]<sgzzyus>not working?
[22:40]<dncdfr>i'm just having a hard time understanding how this is supposed to all hook up together
[22:41]<dncdfr>in other words, my intuition is failing and the documentation is confusing me :)
[22:41]<dncdfr>seems to me that if I have a GtkAdjustment ... GtkAdjustment *adjust, then set that using ... gui.msgScrollVert=gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(gui.msgScrollWindow)); ...
[22:41]<dncdfr>okay not *adjust but *msgScrollVert...
[22:42]<dncdfr>then link that to the child (textview) gtk_widget_set_scroll_adjustments(gui.msgBox,NULL,gui.msgScrollVert) ...
[22:42]<dncdfr>then i'd be able to do things like gtk_text_view_scroll_to_iter?
[22:43]<dncdfr>gtk_widget_set_scroll_adjustments is returning true, which means the widget supports scrolling .. so i figure i'm on the right track to that point.
[22:44]<dncdfr>i think i should look at some other programs source to figure this one out.
[22:44]<sgzzyus>ya, maybe
[22:46]<dncdfr>the good news is that this sort of thing is /getting/ easier. i've only known C for a little over a month and haven't been using it /that/ much.
[22:46]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[22:59]<dncdfr>gtk_widget_set_scroll_adjustments(gui.msgBox,NULL,gui.msgScrollVert) makes the scroll bars disappear.
[23:26]<dncdfr>*running in circles* :)
[23:27]<sgzzyus>back
[23:27]<sgzzyus>kust washed a car
[23:28]<dncdfr>fun :)
[23:30]<-- svgvsdyzgjvr_ xrs>/dev/null")
[23:30]<dncdfr>going to see if anyone is on gimp.org irc
[23:30]<sgzzyus>usually like a hundred ppl there
[23:31]<dncdfr>okay
[23:31]<dncdfr>brb :)
[23:34]<dncdfr>i think if igured out my problem :)
[23:34]<sgzzyus>cool
[23:35]<dncdfr>wow it works now. *duh*
[23:36]<dncdfr>of course i had the right idea, everything i said before was right... it was something else all together causing the problem.
[23:36]<dncdfr>hehe
[23:36]<sgzzyus>what was it?
[23:36]<sgzzyus>for future reference
[23:38]<dncdfr>urm, i was adding the textview widget to the scrolled window using add_with_viewport (or whatever) function and not just gtk_container_add.
[23:38]<dncdfr>add_with_viewport is only for widgets that don't 'natively' support scrolling (so that functionality was never making it through)
[23:38]<sgzzyus>I see
[23:39]<dncdfr>now i just have a warning to deal with.
[23:41]<dncdfr>now that is dealt with :) yey i'm getting the hang of gtk hehe
[23:42]<sgzzyus>I've become pretty adept at reading the documentation, from just hanging out here.
[23:42]<dncdfr>now i can get back to doing math instead of GUI stuff.
[23:42]<dncdfr>yeah well it helps to be able to read the documentation
[23:42]<sgzzyus>So what widget do you use to draw on?
[23:44]<dncdfr>draw on?
[23:44]<dncdfr>like put the image?
[23:44]<sgzzyus>or do you output to an image file?
[23:45]<dncdfr>yeah output to image file, but display image file in program
[23:45]<sgzzyus>okay
[23:45]<dncdfr>later i'll have it display in the program and then be able to save as image.
[23:45]<dncdfr>not quite there yet
[23:46]<sgzzyus>bah, gotta go clean mud off the driveway :)
[23:47]<dncdfr>:) fun stuff.
[23:47]<dncdfr>our driveway is rocks.
Pages: 1







