~ubuntu-branches/debian/experimental/synaptic/experimental

« back to all changes in this revision

Viewing changes to gtk/rguserdialog.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-18 10:17:31 UTC
  • Revision ID: james.westby@ubuntu.com-20080618101731-fb77n5hy28hcq3g3
Tags: 0.62.1
* po/es.po:
  - updated Spanish translation (thanks to
     Francisco Javier Cuadrado)
* debian/control:
  - added "menu" to the recommends (closes: #478250)
* gtk/glade/window_main.glade:
  - make the main vpane shinkable
* gtk/rgmainwindow.cc:
  - do not loose the keyboard focus after a package 
    action in the listview
* debian/control:
  - switch bzr branch to bzr.debian.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                                NULL);
73
73
   gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG(dia),
74
74
                                  g_strdup_printf("<b><big>%s</big></b>\n\n%s",
75
 
                                                  _("An error occured"), 
 
75
                                                  _("An error occurred"), 
76
76
                                                  _("The following details "
77
77
                                                    "are provided:")));
78
78
   gtk_widget_set_size_request(dia, 500, 300);
99
99
   int id = _config->FindI("Volatile::ParentWindowId", -1);
100
100
   if (id > 0) {
101
101
      GdkWindow *win = gdk_window_foreign_new(id);
102
 
      gtk_widget_realize(dia);
103
 
      gdk_window_set_transient_for(GDK_WINDOW(dia->window), win);
 
102
      if(win) {
 
103
         gtk_widget_realize(dia);
 
104
         gdk_window_set_transient_for(GDK_WINDOW(dia->window), win);
 
105
      }
104
106
   }
105
107
 
106
108
   gtk_dialog_run(GTK_DIALOG(dia));
188
190
   int id = _config->FindI("Volatile::ParentWindowId", -1);
189
191
   if (id > 0) {
190
192
      GdkWindow *win = gdk_window_foreign_new(id);
191
 
      gtk_widget_realize(dia);
192
 
      gdk_window_set_transient_for(GDK_WINDOW(dia->window), win);
 
193
      if(win) {
 
194
         gtk_widget_realize(dia);
 
195
         gdk_window_set_transient_for(GDK_WINDOW(dia->window), win);
 
196
      }
193
197
   }
194
198
 
195
199
   gtk_dialog_run(GTK_DIALOG(dia));
235
239
   int id = _config->FindI("Volatile::ParentWindowId", -1);
236
240
   if (id > 0 && _parentWindow == NULL) {
237
241
      GdkWindow *win = gdk_window_foreign_new(id);
238
 
      gtk_widget_realize(_dialog);
239
 
      gdk_window_set_transient_for(GDK_WINDOW(_dialog->window), win);
 
242
      if(win) {
 
243
         gtk_widget_realize(_dialog);
 
244
         gdk_window_set_transient_for(GDK_WINDOW(_dialog->window), win);
 
245
      }
240
246
   }
241
247
 
242
248
   g_free(filename);