Ticket #40116: patch_quartz-src-yelp-application.c.diff

File patch_quartz-src-yelp-application.c.diff, 1.2 KB (added by c.herbig@…, 11 years ago)
  • src/

    old new  
    3030#include <gio/gsettingsbackend.h>
    3131#include <glib/gi18n.h>
    3232#include <gtk/gtk.h>
    33 #include <gdk/gdkx.h>
    3433#include <stdlib.h>
    3534
    3635#include "yelp-bookmarks.h"
     
    466465    yelp_window_load_uri (window, uri);
    467466
    468467    gtk_widget_show_all (GTK_WIDGET (window));
    469 
    470     /* Metacity no longer does anything useful with gtk_window_present */
    471     gdk_window = gtk_widget_get_window (GTK_WIDGET (window));
    472     if (gdk_window)
    473         gdk_x11_window_move_to_current_desktop (gdk_window);
    474 
    475     /* Ensure we actually present the window when invoked from the command
    476      * line. This is somewhat evil, but the minor evil of Yelp stealing
    477      * focus (after you requested it) is outweighed for me by the major
    478      * evil of no help window appearing when you click Help.
    479      */
    480     if (data->timestamp == 0)
    481         data->timestamp = gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (window)));
    482 
    483     gtk_window_present_with_time (GTK_WINDOW (window), data->timestamp);
     468    gtk_window_present (GTK_WIDGET (window));
    484469
    485470    g_object_unref (uri);
    486471    g_free (data);