Your message dated Fri, 10 Apr 2009 23:30:37 +0100
with message-id <[email protected]>
and subject line gtk+1.2 has been removed from Debian, closing #174650
has caused the Debian Bug report #174650,
regarding libgtk1.2-dev: hscrollbar and gtk_range_set_adjustment
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
174650: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=174650
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgtk1.2-dev
Version: 1.2.10-14

When a new GtkAdjustment is set on a hscrollbar using
gtk_range_set_adjustment, the size of the slider doesn't seem to
update.

The program foo.c below compiled with

        gcc `gtk-config --cflags` foo.c -o foo `gtk-config --libs`

sets up a button which changes a hscrollbar.  Notice that after
pressing it the hscrollbar doesn't change.  Though moving the slider
with the mouse makes it suddenly shrink to the intended new size.

I guess I'm not quite sure if I'm doing this the right way, I was
following the "Common Range Functions" section of the libgtk1.2-doc
tutorial where gtk_range_set_adjustment says it "will (or at least, is
supposed to...) recalculate the size and/or position of the slider".

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux blah 2.2.15 #1 Tue Apr 25 17:13:48 EST 2000 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages libgtk1.2-dev depends on:
ii  dpkg                          1.10.9     Package maintenance system for Deb
ii  libglib1.2-dev                1.2.10-6   Development files for GLib library
ii  libgtk1.2                     1.2.10-14  The GIMP Toolkit set of widgets fo
ii  pkg-config                    0.8.0-1.1  program and autoconf macro to gath
ii  xlibs-dev                     4.2.1-4    X Window System client library dev

-- no debconf information

#include <stdio.h>
#include <gtk/gtk.h>

GtkObject *oldadj, *newadj;
GtkWidget *hscrollbar;

void
change (GtkWidget *widget, gpointer data)
{
  printf ("calling gtk_range_set_adjustment\n");
  gtk_range_set_adjustment (GTK_RANGE (hscrollbar), GTK_ADJUSTMENT (newadj));
}

int
main (int argc, char *argv[])
{
  GtkWidget *toplevel, *vbox, *button;

  gtk_init(&argc, &argv);
  toplevel = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_default_size (GTK_WINDOW (toplevel), 400, 100);

  vbox = gtk_vbox_new (FALSE, 0);
  gtk_container_add (GTK_CONTAINER (toplevel), vbox);

  button = gtk_button_new_with_label ("Click me");
  gtk_signal_connect (GTK_OBJECT (button), "clicked",
                      GTK_SIGNAL_FUNC (change), NULL);
  gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);

  oldadj = gtk_adjustment_new (2, 0, 10, 1, 5, 6);
  newadj = gtk_adjustment_new (2, 0, 10, 1, 5, 2);

  hscrollbar = gtk_hscrollbar_new (GTK_ADJUSTMENT (oldadj));
  gtk_box_pack_start (GTK_BOX (vbox), hscrollbar, FALSE, FALSE, 0);

  gtk_widget_show_all (toplevel);
  gtk_main ();
  return 0;
}

--- End Message ---
--- Begin Message ---
Version: 1.2.10-18.1+rm

The gtk+1.2 package has been removed from Debian so we are closing
the bugs that were still opened against it.

For more information about this package's removal, read
http://bugs.debian.org/520441 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

Kind regards,
--
Marco Rodrigues


--- End Message ---

Reply via email to