Logo Search packages:      
Sourcecode: verbiste version File versions

util.cpp

#include "util.h"

#include <gtk/gtkwindow.h>


void
set_window_icon_to_default(GtkWidget *window)
{
    GdkPixbuf *icon = gdk_pixbuf_new_from_file(
                        PIXMAPDIR "/" PACKAGE ".png", NULL);
    if (icon == NULL)
      g_warning("gdk_pixbuf_new_from_file() failed on "
                        PIXMAPDIR "/" PACKAGE ".png");
    else
      gtk_window_set_icon(GTK_WINDOW(window), icon);
}

Generated by  Doxygen 1.6.0   Back to index