View | Details | Raw Unified | Return to bug 147859
Collapse All | Expand All

(-)app/display/gimpstatusbar.c (-8 / +10 lines)
Lines 154-159 Link Here
154
  GtkWidget     *hbox;
154
  GtkWidget     *hbox;
155
  GtkWidget     *image;
155
  GtkWidget     *image;
156
  GimpUnitStore *store;
156
  GimpUnitStore *store;
157
  GtkWidget	*message_area;
158
  GtkWidget	*message_area_parent;
157
159
158
  statusbar->shell          = NULL;
160
  statusbar->shell          = NULL;
159
  statusbar->messages       = NULL;
161
  statusbar->messages       = NULL;
Lines 171-182 Link Here
171
  statusbar->progress_active      = FALSE;
173
  statusbar->progress_active      = FALSE;
172
  statusbar->progress_shown       = FALSE;
174
  statusbar->progress_shown       = FALSE;
173
175
174
  /* remove the label and insert a hbox */
176
  /* remove the message area and insert a hbox */
175
  gtk_container_remove (GTK_CONTAINER (GTK_STATUSBAR (statusbar)->frame),
177
  message_area = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar));
176
                        g_object_ref (GTK_STATUSBAR (statusbar)->label));
178
  message_area_parent = gtk_widget_get_parent (message_area);
179
  gtk_container_remove (GTK_CONTAINER (message_area_parent), g_object_ref (message_area));
177
180
178
  hbox = gtk_hbox_new (FALSE, 1);
181
  hbox = gtk_hbox_new (FALSE, 1);
179
  gtk_container_add (GTK_CONTAINER (GTK_STATUSBAR (statusbar)->frame), hbox);
182
  gtk_container_add (GTK_CONTAINER (message_area_parent), hbox);
180
  gtk_widget_show (hbox);
183
  gtk_widget_show (hbox);
181
184
182
  statusbar->cursor_label = gtk_label_new ("8888, 8888");
185
  statusbar->cursor_label = gtk_label_new ("8888, 8888");
Lines 207-216 Link Here
207
                    G_CALLBACK (gimp_statusbar_scale_changed),
210
                    G_CALLBACK (gimp_statusbar_scale_changed),
208
                    statusbar);
211
                    statusbar);
209
212
210
  /*  put the label back into our hbox  */
213
  /* put the message area back into our hbox */
211
  gtk_box_pack_start (GTK_BOX (hbox),
214
  gtk_box_pack_start (GTK_BOX (hbox), message_area, TRUE, TRUE, 1);
212
                      GTK_STATUSBAR (statusbar)->label, TRUE, TRUE, 1);
215
  g_object_unref (message_area);
213
  g_object_unref (GTK_STATUSBAR (statusbar)->label);
214
216
215
  g_signal_connect_after (GTK_STATUSBAR (statusbar)->label, "expose-event",
217
  g_signal_connect_after (GTK_STATUSBAR (statusbar)->label, "expose-event",
216
                          G_CALLBACK (gimp_statusbar_label_expose),
218
                          G_CALLBACK (gimp_statusbar_label_expose),

Return to bug 147859