diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2001-07-03 21:08:24 +0000 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2001-07-03 21:08:24 +0000 |
commit | 0b29af83c21c3daad886bf5223741769e39a12ad (patch) | |
tree | 54e573019f658add52f2563031293102eb51c336 | |
parent | 7b6d91fd92356adb137e0a9d832c616f82e809d1 (diff) |
Applied patch from Richard Kinder <r_kinder@yahoo.com>
2001-07-03 Kjartan Maraas <kmaraas@gnome.org>
Applied patch from Richard Kinder <r_kinder@yahoo.com>
* jbc-applet.c: Change the creation order so that the panel pixel size is known prior
to setting the canvas size.
-rw-r--r-- | jbc/ChangeLog | 7 | ||||
-rw-r--r-- | jbc/jbc-applet.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/jbc/ChangeLog b/jbc/ChangeLog index d5b5eb248..8f2ec078a 100644 --- a/jbc/ChangeLog +++ b/jbc/ChangeLog @@ -1,3 +1,10 @@ +2001-07-03 Kjartan Maraas <kmaraas@gnome.org> + + Applied patch from Richard Kinder <r_kinder@yahoo.com> + + * jbc-applet.c: Change the creation order so that the panel pixel size is known prior + to setting the canvas size. + Thu Dec 14 03:42:06 2000 George Lebl <jirka@5z.com> * jbc-applet.c: Applied patch from Peter Hawkins diff --git a/jbc/jbc-applet.c b/jbc/jbc-applet.c index 54746a70a..bc35a883a 100644 --- a/jbc/jbc-applet.c +++ b/jbc/jbc-applet.c @@ -183,9 +183,11 @@ main (int argc, char **argv) g_error (_("Can't create applet!\n")); canvas = gnome_canvas_new (); - gtk_widget_set_usize (canvas, CANVAS_WIDTH, CANVAS_HEIGHT); gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0.0, 0.0, CANVAS_WIDTH, CANVAS_HEIGHT); + panel_size = applet_widget_get_panel_pixel_size(APPLET_WIDGET(applet)); + redo_size(applet); + gtk_signal_connect (GTK_OBJECT (applet), "change_orient", GTK_SIGNAL_FUNC (change_orient), canvas); gtk_signal_connect (GTK_OBJECT (applet), "change_pixel_size", |