~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to client/gui-gtk-2.0/gui_stuff.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2009-11-27 23:24:00 UTC
  • mfrom: (7.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091127232400-nmoil1yvvskugn1h
[ Karl Goetz ]
* New upstream release
* Bump standards-version to 3.8.3
* Update watch file
  - Now version 3
  - Switched to gna.org instead of sf.net
* Switch readline dev dependency to libreadline-dev instead of
libreadline5-dev. Closes: #553758
* Changed compat to 5
* Relaxed dependencies on freeciv-server for sdl and gtk clients,
freeciv-server is now a recommends
* Stop d/rules trying to gzip scenarios - upstream does this.
* Remove export of datarootdir in d/rules, upstream seems to handle
this correctly now.
* Deleted 01_configure_ac_localedir.diff from d/patches/ and from series.
* Create per-client .desktop files. Closes: #470978, LP: #190555
* Desktop files mention which client they are (sdl/gtk/xaw3d).
* Add myself to uploaders on Clint's suggestion.

[ Clint Adams ]
* Change watch file to grab bz2 tarballs.
* Switch to 3.0 (quilt) source format.
* Remove quilt code from debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
**************************************************************************/
246
246
void gtk_tree_view_focus(GtkTreeView *view)
247
247
{
 
248
  GtkTreeModel *model;
248
249
  GtkTreePath *path;
 
250
  GtkTreeIter iter;
249
251
 
250
 
  if ((path = gtk_tree_path_new_first())) {
 
252
  if ((model = gtk_tree_view_get_model(view))
 
253
      && gtk_tree_model_get_iter_first(model, &iter)
 
254
      && (path = gtk_tree_model_get_path(model, &iter))) {
251
255
    gtk_tree_view_set_cursor(view, path, NULL, FALSE);
252
256
    gtk_tree_path_free(path);
253
257
    gtk_widget_grab_focus(GTK_WIDGET(view));