~ubuntu-branches/ubuntu/hardy/evince/hardy-proposed

« back to all changes in this revision

Viewing changes to shell/eggfindbar.c

  • Committer: Bazaar Package Importer
  • Author(s): Aron Sisak
  • Date: 2007-07-30 22:47:24 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20070730224724-3jcs7t9t5ymuj6os
Tags: 0.9.3-0ubuntu1
* New upstream release:
  - New Features and UI Improvements:
    - Use new GTK+ tootlips 
    - Printing multiple pages per sheet
    - Added UNIX-like key bindings hjkl
  - Bug fixes:
    - Do not block while enumerating printers in preview mode
    - Show new pages as soon as they are rendered even if other page 
      elements like forms, images or links are not ready yet 
    - Provide different options in the print dialog depending on document 
      type backend capabilities 
  - Translations:
    - es, eu, fi, hu, mk, nl, zh_CN
* debian/patches/02_autoconf.patch:
  - configure update

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <gtk/gtkseparatortoolitem.h>
35
35
#include <gtk/gtkarrow.h>
36
36
#include <gtk/gtktoggletoolbutton.h>
 
37
#include <gtk/gtkversion.h>
37
38
 
38
39
#include <string.h>
39
40
 
328
329
  arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
329
330
  priv->previous_button = gtk_tool_button_new (arrow, Q_("Find Previous"));
330
331
  gtk_tool_item_set_is_important (priv->previous_button, TRUE);
 
332
#if GTK_CHECK_VERSION (2, 11, 5)
 
333
  gtk_widget_set_tooltip_text (GTK_WIDGET (priv->previous_button),
 
334
                               _("Find previous occurrence of the search string"));
 
335
#else
331
336
  gtk_tool_item_set_tooltip (priv->previous_button, GTK_TOOLBAR (find_bar)->tooltips,
332
337
                             _("Find previous occurrence of the search string"),
333
338
                             NULL);
 
339
#endif
334
340
 
335
341
  /* Next */
336
342
  arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
337
343
  priv->next_button = gtk_tool_button_new (arrow, Q_("Find Next"));
338
344
  gtk_tool_item_set_is_important (priv->next_button, TRUE);
 
345
#if GTK_CHECK_VERSION (2, 11, 5)
 
346
  gtk_widget_set_tooltip_text (GTK_WIDGET (priv->next_button),
 
347
                               _("Find next occurrence of the search string"));
 
348
#else
339
349
  gtk_tool_item_set_tooltip (priv->next_button, GTK_TOOLBAR (find_bar)->tooltips,
340
350
                             _("Find next occurrence of the search string"),
341
351
                             NULL);
 
352
#endif
342
353
 
343
354
  /* Separator*/
344
355
  priv->status_separator = gtk_separator_tool_item_new();
347
358
  priv->case_button = gtk_toggle_tool_button_new ();
348
359
  g_object_set (G_OBJECT (priv->case_button), "label", _("C_ase Sensitive"), NULL);
349
360
  gtk_tool_item_set_is_important (priv->case_button, TRUE);
 
361
#if GTK_CHECK_VERSION (2, 11, 5)
 
362
  gtk_widget_set_tooltip_text (GTK_WIDGET (priv->case_button),
 
363
                               _("Toggle case sensitive search"));
 
364
#else  
350
365
  gtk_tool_item_set_tooltip (priv->case_button, GTK_TOOLBAR (find_bar)->tooltips,
351
366
                             _("Toggle case sensitive search"),
352
367
                             NULL);
 
368
#endif
353
369
  /* Status */
354
370
  priv->status_item = gtk_tool_item_new();
355
371
  gtk_tool_item_set_expand (priv->status_item, TRUE);