File: fonts_button_callback.C

package info (click to toggle)
peruser 4b33-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,952 kB
  • ctags: 1,064
  • sloc: cpp: 22,367; perl: 2,733; makefile: 345; sh: 335
file content (15 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>
#include <stdio.h>

#include <gtk/gtk.h>

#include "nptext.h"

int fonts_button_callback( GtkWidget *widget, GdkEvent *event )
{
   gtk_menu_popup( GTK_MENU( widget ), NULL, NULL, NULL, NULL,
                   (( GdkEventButton *)event )->button,
                   (( GdkEventButton *)event )->time );

   return TRUE;
}