~ubuntu-branches/ubuntu/dapper/synaptic/dapper-proposed

« back to all changes in this revision

Viewing changes to gtk/rggladewindow.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-05-18 11:41:18 UTC
  • Revision ID: james.westby@ubuntu.com-20060518114118-1drfzirjqgeer7me
Tags: 0.57.8ubuntu11
* fix bug that the window is not visisble in the tasklist when run 
  in "install all upgrades" mode from update-notifier (thanks to
  seb128 for reporting)
* hide the "auto-close" checkbutton when runing non-interactively,
  because synaptic won't save options then (Ubuntu: #28250)
* better deal with invalid utf8 in the package descriptions 
  (Ubuntu: #37050, #38399)
* increase the size of the diff dialog textview (ubuntu: #44012)
* search in summary too (ubuntu: #32337)
* fix focus problem (ubuntu: #39971)

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
   // if we have no parent, don't skip the taskbar hint
86
86
   if(_config->FindB("Volatile::HideMainwindow",false) && id < 0)
87
87
   {
88
 
      gtk_widget_realize(_win);
89
 
      gdk_window_set_skip_taskbar_hint(_win->window, FALSE);
 
88
      gtk_window_set_skip_taskbar_hint(GTK_WINDOW(_win), FALSE);
90
89
      gtk_window_set_urgency_hint(GTK_WINDOW(_win), TRUE);
91
90
   }
92
91
 
100
99
      return false;
101
100
   }
102
101
 
103
 
   if (!value)
104
 
      value = _("N/A");
105
 
   gtk_label_set_label(GTK_LABEL(widget), utf8(value));
 
102
   const gchar *utf8value=utf8(value);
 
103
 
 
104
   if (!utf8value)
 
105
      utf8value = _("N/A");
 
106
   gtk_label_set_label(GTK_LABEL(widget), utf8value);
106
107
   return true;
107
108
}
108
109
 
180
181
   }
181
182
 
182
183
   GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
183
 
   gtk_text_buffer_set_text (buffer, utf8(value), -1);
 
184
   const gchar *utf8value = utf8(value);
 
185
   if(!utf8value)
 
186
      utf8value = _("N/A");
 
187
   gtk_text_buffer_set_text (buffer, utf8value, -1);
184
188
 
185
189
   if(use_headline) {
186
190
      GtkTextTagTable *tag_table = gtk_text_buffer_get_tag_table(buffer);