~ubuntu-branches/ubuntu/intrepid/gimp/intrepid-updates

« back to all changes in this revision

Viewing changes to plug-ins/helpbrowser/dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-11-21 17:39:07 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20071121173907-od54p9hdtvn5frl0
Tags: 2.4.1-1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - 02_help-message.patch, 03_gimp.desktop.in.in.patch: Distro changes.
  - Weave i18n magic in the rules file.
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Apply patch from upstream (SVN r23659) that corrects the image
    disappearing for large images at 150% zoom.
  - Symlink doc directories to avoid duplicate files, CDBS does this for
    us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
typedef struct
69
69
{
70
 
  gint32  width;
71
 
  gint32  height;
72
 
  gint32  paned_position;
 
70
  gint     width;
 
71
  gint     height;
 
72
  gint     paned_position;
 
73
  gdouble  zoom;
73
74
} DialogData;
74
75
 
75
76
enum
196
197
  GtkCellRenderer *cell;
197
198
  GdkPixbuf       *pixbuf;
198
199
  gchar           *eek_png_path;
199
 
  DialogData       data = { 720, 560, 240 };
 
200
  DialogData       data = { 720, 560, 240, 1.0 };
200
201
 
201
202
  gimp_ui_init ("helpbrowser", TRUE);
202
203
 
378
379
                    G_CALLBACK (view_button_press),
379
380
                    NULL);
380
381
 
 
382
  html_view_set_magnification (HTML_VIEW (html), data.zoom);
381
383
  html_view_set_document (HTML_VIEW (html), html_document_new ());
382
384
 
383
385
  g_signal_connect (HTML_VIEW (html)->document, "title-changed",
877
879
}
878
880
 
879
881
static void
880
 
zoom_in_callback (GtkAction  *action,
881
 
                  gpointer  data)
 
882
zoom_in_callback (GtkAction *action,
 
883
                  gpointer   data)
882
884
{
883
885
  html_view_zoom_in (HTML_VIEW (html));
884
886
}
1053
1055
              GtkWidget *paned)
1054
1056
{
1055
1057
  DialogData  data;
1056
 
  gint        width;
1057
 
  gint        height;
1058
 
 
1059
 
  gtk_window_get_size (GTK_WINDOW (window), &width, &height);
1060
 
 
1061
 
  data.width          = width;
1062
 
  data.height         = height;
 
1058
 
 
1059
  gtk_window_get_size (GTK_WINDOW (window), &data.width, &data.height);
 
1060
 
1063
1061
  data.paned_position = gtk_paned_get_position (GTK_PANED (paned));
1064
1062
 
 
1063
  data.zoom = html ? html_view_get_magnification (HTML_VIEW (html)) : 1.0;
 
1064
 
1065
1065
  gimp_set_data (GIMP_HELP_BROWSER_DIALOG_DATA, &data, sizeof (data));
1066
1066
 
1067
1067
  gtk_main_quit ();