[help] Gdk_pixbuff

Hello there,

I have started a project called gDock (I'll leave what it does to your imagination :P).

I have gDock running, creating the elements and all but I am having difficulties with the magnification. I need help from someone who knows how gdk_pixbuffs work. I am new to GTK/GDK programming.

Thank you for your time....

#44219

:woot: :woot:

That was the first thing in my mind

Second thing in my mind is in what enviroment would u like to write that dock :rolleyes:

And i hope that i could ran it thru gnome too

#44222

I am trying to make it as universal as I can, meaning that I am trying to stay away from gnome libraries but still using GTK which are the libraries gnome is based on.

The basic functionality of the dock is there, I have a config file where you define what applications to run and what icons represent the aplication, I am trying to get help with the magnification, because there is none right now :)

#44227

Why not talk to the developer of that KDE Dock. His magnification (was) pretty good.

Could you post some screenshots? And hows the transparency gonna work?

#44229

I though of that, but KDE used QT as the GUI libraries so it wont help, I found an example that I am trying to follow

at the command line type : gtk-demo

doubleclick in Pixbufs

Transparency will work as in any other Xlib base app... it will be FAKE.

instead of an screenshots I will upload what I have right now. and some basic instructions... give me 5 to clean the code up and make a build :)

#44230

here it is.. you need a gDock.cfg file in the same directory. the cfg file should contain 2 entries per line.. full path is requiered for the icons

ie:

/usr/share/icons/Umicons/128x128/apps/aim.png gaim

as many lines as you want..

hardcoded size is 128x128, if your icon is smaller it will be displayed centered in a 128x128 container.

this is pre-pre-pre-pre-alpha, it was done in 3 hours, 2 hours and 30 minutes of those 3 hours were research :D it is useable but why would you use it?

#44231

Hi!

Very good project!!! :own:

Please continue!!!

#45097

mmmm how install the download file ? or, what is this file ?

#45190

Its an executable.

But its not working for me. :-(

#45194

contrasura it should work for you better that to anyone else.. it is developed in slackware :P

maybe is something with the attachment to the board? let me see if I can host it in my website.

#45283

I can host the file for you, email me: contrasutra@myrealbox.com

But im not in slack anymore, ArchLinux all the way.

Anyway, it executes, but then instantly dies, with no output.

Try compiling it with GCC.

#45287

It is compiled with gcc :)

I found a place that has a small introduction to pixbufs, I'll see if I can at least do magnification in 1 icon at the time and then I'll worry about the rest.

Contra, check your mail and see if you get it to compile.

#45472

Oh, when I "file"d it, it said it was done on some intel compiler.

Anyway, yeah, I got it to compile, with some errors. It works, but theres no magnification (is there suppose to be).

Heres the make output:

gcc gDock.c -o gDock `pkg-config --libs --cflags gtk+-2.0`

gDock.c: In function `Populate_dDock':

gDock.c:114: warning: assignment makes pointer from integer without a cast

gDock.c:122: warning: assignment makes pointer from integer without a cast

#45534

no magnification yet, still figuring out how to do it

#45558

well, it looks promising. Keep up the good work.

What license is it going to be under? Because you really shouldnt give out the source if you dont want it to be GPLd or something.

Not that I can do anything with C source. :lol:

#45593

either GPL or Apache

#45616

How install or execute in Redhat 9 ??

#45658

do:

chmod +X [file]

then ./[file]

make sure you creat a gDock.cfg using the directions Telmo gave.

#45659

thx

#45663

so whats the update on this so far telmo?

havnt heard anything in a bit

-bolero

#46591

sorry my parents are visiting from Spain so I haven't have much time to work on the dock, I got per icon magnification working altho it needs some tweaking. I changed the configuration so now you can specify the regular icon size and the maximized icon size.

As I said my parents are here so it will be at least 10 more days before I release a beta.

#46632

okay thanks for the info!

no rush!

-bolero

#46644

ok, I am back at coding.. I still need help, I have a couple of questions that hasn't been answer in the GTK mailing list. So if anyone has knowledge of GTK or know someone that does please let me know.

#48395