RE: gtk-list digest, Vol 1 #1024 - 11 msgs



Okay. I didn't include any OS particulars before because I've had no problems with it prior to this. Matter of fact, no matter which *nix I use there is always a problem with packages I find. Pretty much the same error on all distros too.

The GTK+ package downloaded (latest-stable) was missing 1 header. Found it.
The pango package downloaded (1.0.1) was missing 1 header. Found it.
gdkconfig was missing from the GTK+ distro (listed as being included) but found it.

Had to manualy try to link all dirs because GLIB2+, Pango, GTK+, pkg-config would not pick up the parameters no matter how hard I tried.

Specs:
SuSE 8.0 (has latest kernel-stable, glib2.0.x, kde3.0...yada yada)
**standard distro striaght from SuSE box**
Hardware shouldn't matter all that much here, but:
Tyan Tiger DualProc
(x2) AMD XP 1.4s
512MB RAM
Voodoo4 4500 agp
(x2) 60GB WD HDD IDE
(x2) 8GB Seagate ext scsi
3COM nic 10/100/1000

GTK+ & other distros compiled using makefiles dirstord w/them.
Only one error during the ./configure routine: glib2.0.x or better required.
pango not found, pkg-config update not found and so forth.
The RPMs didn't seem to actually get things running the way they were supposed to, so I had to manually copy, compile, configure everything.

After pulling out all the stops, and my hair, all the necessary preqs were in the box needed by GTK+. Then came the internal missing headers which were either left out of the package, or were lost during dl(weird).
After hunting down the lost files, I finally got everything basically configured and wrote an example GTK proggie from a book just to test it.
No Go. Now it cant link to a crap load more files, and all sortz of syntax errors in the code. (about 4 pages of errors for 10 lines of code)
Looking at all the errors, it pretty much seems like half of the libs are linked, and the other half are out playing footsies.

Also, i tried to change my PATH to reflect some of the other directories just to be certain things were ok, but the new path is not sticking for some reason.
Running env shows pretty much what things are, and I already set up the links in the lib.so.conf (unless that document was wrong too or i had a brain fart)

(bare in mind i know that normally the most simple issues are what cause the problems, but whatever "normal" stuff i left out is because i'm quite certain its not the cause of the problem)

Thnx

Original Message:
-----------------
From:  gtk-list-request gnome org
Date: Tue, 21 May 2002 12:04:00 -0400 (EDT)
To: gtk-list gnome org
Subject: gtk-list digest, Vol 1 #1024 - 11 msgs


Send gtk-list mailing list submissions to
	gtk-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gtk-list
or, via email, send a message with subject or body 'help' to
	gtk-list-request gnome org

You can reach the person managing the list at
	gtk-list-admin gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-list digest..."


Today's Topics:

   1. Problems with gtk+2.0.2 (dafreq swbell net)
   2. Re: Problems with gtk+2.0.2 (Chris Nystrom)
   3. Re: How to change pixmap in button? (Paul Davis)
   4. Re: How to change background color in a window (Paul Davis)
   5. Re: GTK- process called from another process does not end (Paul Davis)
   6. Re: How to change background color in a window (Sven Neumann)
   7. Re: How to get the "released" signal of a mouse click in a window? (Sven Neumann)
   8. Moving a window wm independent (Mattias Gaertner)
   9. Re: Moving a window wm independent (Sven Neumann)
  10. GtkEntry set text (Reham Younis)
  11. gtk_clist_append (Lourdes Maldonado)

--__--__--

Message: 1
Subject: Problems with gtk+2.0.2
From: "dafreq swbell net" <dafreq swbell net>
Date: Mon, 20 May 2002 15:47:09 -0400
To: "gtk-list gnome org" <gtk-list gnome org>
Reply-To: dafreq swbell net

Good day.

I've been through your online FAQ, as well as about 10 others.
After a fairly lengthy process, and lack of documentation, I got everything needed for the GTK+.

Long story short, I can't get anything to compile. It keeps telling me it can't find whatever.h and the list is very long=
 As if it isn't linked correctly.

Please help. If I have by some mysterious way missed whatever documentation helps with this particular problem, I apologi=
ze. But a link to such a document would be greatly appreciated. There doesn't seem to be enough "literal" text docs out t=
here for getting things up and running.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


--__--__--

Message: 2
Date: Mon, 20 May 2002 15:45:17 -0500 (CDT)
From: Chris Nystrom <ccn olenska hn org>
To: "dafreq swbell net" <dafreq swbell net>
Cc: "gtk-list gnome org" <gtk-list gnome org>
Subject: Re: Problems with gtk+2.0.2

On Mon, 20 May 2002, dafreq swbell net wrote:

> Long story short, I can't get anything to compile. It keeps telling me
> it can't find whatever.h and the list is very long As if it isn't linked
> correctly.

What platform? Did you install it yourself? Were there any errors in
the install? Are you compiling by hand, or are you using a Makefile?

Chris



--__--__--

Message: 3
To: Rick Amont <ric_amont yahoo com>
Cc: gtk-list gnome org
Subject: Re: How to change pixmap in button?
Date: Mon, 20 May 2002 18:27:27 -0400
From: Paul Davis <pbd op net>

>I have been trying to change the pixmap of a button in
>which I previously inserted a pixmap, using the button
>as a container for the pixmap. How to empty the
>container to insert a new pixmap?

	   gtk_container_remove (GTK_CONTAINER(button_widget),
				 pixmap_widget);


--__--__--

Message: 4
To: Rick Amont <ric_amont yahoo com>
Cc: gtk-list gnome org
Subject: Re: How to change background color in a window
Date: Mon, 20 May 2002 18:28:07 -0400
From: Paul Davis <pbd op net>

>I have been trying to change the background color of a
>window in GTK+. I have tried, among other things,
>changing the background color in the widget's style
>like this

      [ ... ]

http://pobox.com/~hp/gtk-colors.html

--__--__--

Message: 5
To: Rick Amont <ric_amont yahoo com>
Cc: gtk-list gnome org
Subject: Re: GTK- process called from another process does not end
Date: Mon, 20 May 2002 18:29:26 -0400
From: Paul Davis <pbd op net>

>Hello,
>
>I am calling a gtk-process from another gtk process
>using fork and communicate with the process through
>pipes. The called process receives all my messages,
>even the quit message, but the window only disappears
>when I place the mouse on it. I've tried to bring the
>background window to top with a call to
>gtk_show_window, but it does not help.
>
>When I execute the process for itself, it closes
>correctly on receiving the quit signal.

i can't begin to understand the problem you're describing because of a
lack of information. however, it sounds as if you might be making the
all too common mistake of thinking you can fork and then continue
using the GTK setup already established in the parent. you cannot do
this.

--p

--__--__--

Message: 6
To: Rick Amont <ric_amont yahoo com>
Cc: gtk-list gnome org
Subject: Re: How to change background color in a window
From: Sven Neumann <sven gimp org>
Date: 21 May 2002 11:08:46 +0200

Hi,

Rick Amont <ric_amont yahoo com> writes:

> I have been trying to change the background color of a
> window in GTK+. I have tried, among other things,
> changing the background color in the widget's style
> like this
> GtkStyle *style;
> style = gtk_widget_get_style(window);
> style = gtk_style_copy(style); //Saw this one in a
> mail //list but I don't get it
> style->fg[0] = white; //white defined as a color before

didn't you want to change the background color? That would have been
style->bg[] then.


Salut, Sven

--__--__--

Message: 7
To: Rick Amont <ric_amont yahoo com>
Cc: gtk-list gnome org
Subject: Re: How to get the "released" signal of a mouse click in a window?
From: Sven Neumann <sven gimp org>
Date: 21 May 2002 11:11:50 +0200

Hi,

Rick Amont <ric_amont yahoo com> writes:

> I have a scrolled window inside a window and I am
> connecting the "pressed" and "released" mouse button
> signals to their respective handling functions. While
> I get the pressed signal, I can not get the release
> signal. I've tried things like:
>
>   gtk_widget_add_events(mainwin, GDK_BUTTON_PRESS_MASK);

why don't you try with GDK_BUTTON_RELEASE_MASK? After all, the release
event is what you are interested in, isn't it?


Salut, Sven


--__--__--

Message: 8
Date: Tue, 21 May 2002 11:53:42 +0200
From: Mattias Gaertner <nc-gaertnma netcologne de>
To: gtk-list gnome org
Subject: Moving a window wm independent

Hi all,

I want to move a whole window around. I tried

gdk_window_move and gtk_widget_set_uposition.

They both do pretty the same. But the result depends on the windowmanager. sawfish for example puts the window _with_ the window border at the coordinate, enlightenment puts the inner area, i.e. _without_ the window border, at the coordinate.
My problem is, that if I ask the coordinate via

gdk_window_get_origin, gdk_window_get_root_origin or gdk_window_get_position,

I got window manager independent answers. But I don't know how to set the position wm independently.

How is it possible to move a window independent of the window manager?


Mattias Gaertner


--__--__--

Message: 9
To: Mattias Gaertner <nc-gaertnma netcologne de>
Cc: gtk-list gnome org
Subject: Re: Moving a window wm independent
From: Sven Neumann <sven gimp org>
Date: 21 May 2002 13:35:59 +0200

Hi,

Mattias Gaertner <nc-gaertnma netcologne de> writes:

> I want to move a whole window around. I tried
>
> gdk_window_move and gtk_widget_set_uposition.

what about gtk_window_move()? Did you try that?


Salut, Sven

--__--__--

Message: 10
Date: Tue, 21 May 2002 04:50:22 -0700 (PDT)
From: Reham Younis <reham_younis yahoo com>
Subject: GtkEntry set text
To: gtk-list gnome org

Does anyone know who do I set the text of a GtkEntry?
I am using gtk_entry_set_text(GtkEntry * entry,gchar
*text). But it keeps appending to the current text!
Could anyone give me an explanation?

Reham


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--__--__--

Message: 11
Subject: gtk_clist_append
Date: Tue, 21 May 2002 09:59:33 -0400
From: "Lourdes Maldonado" <maldonado ibiquity com>
To: <gtk-list gnome org>


I am using the following code to update my list but I noticed that my
memory usage increases with almost every call I make to
gtk_clist_append.

(btw: I commented out the call to the systemstatus_update function and
the memory usage increase disappear so I am pretty sure the problem
exists in this function).

------------------------------------------------------------------------
-
void
systemstatus_update(UI_ERROR_WARNING_BODY_CMD_t *body)
{
   gint i;
   static gint row =3D 0;
   gchar *message;

   message =3D body->data;=20

   row =3D gtk_clist_append
            (GTK_CLIST(SYSTEMSTATUSi_entries.clst_messages),
             &message);

   /* Delete old rows when the count of rows gets beyond 20. */
   if (row > 20)
   {
      gtk_clist_freeze(GTK_CLIST(SYSTEMSTATUSi_entries.clst_messages));

      for (i =3D 20; i >=3D 0; i--)
      {
         gtk_clist_remove
                (GTK_CLIST(SYSTEMSTATUSi_entries.clst_messages),
                 i);
      }
     =20
      gtk_clist_thaw(GTK_CLIST(SYSTEMSTATUSi_entries.clst_messages));

      row =3D 0;
   }
}
------------------------------------------------------------------------
------

Can anyone tell me what I am doing wrong?  I am using gtk 1.2.

Thanks,

Lourdes Maldonado


--__--__--

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


End of gtk-list Digest

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]