Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  builder.c   Sprache: C

 

/* Builder
 * #Keywords: GMenu, GtkPopoverMenuBar, GtkBuilder, GtkShortcutController, toolbar
 *
 * Demonstrates a traditional interface, loaded from a XML description,
 * and shows how to connect actions to the menu items and toolbar buttons.
 */


#include <gtk/gtk.h>

static void
quit_activate (GSimpleAction *action,
               GVariant      *parameter,
               gpointer       user_data)
{
  GtkWidget *window = user_data;

  gtk_window_destroy (GTK_WINDOW (window));
}

static void
about_activate (GSimpleAction *action,
                GVariant      *parameter,
                gpointer       user_data)
{
  GtkWidget *window = user_data;
  GtkWidget *about_dlg;

  about_dlg = GTK_WIDGET (g_object_get_data (G_OBJECT (window), "about"));
  gtk_window_present (GTK_WINDOW (about_dlg));
}

static void
remove_timeout (gpointer data)
{
  guint id = GPOINTER_TO_UINT (data);

  g_source_remove (id);
}

static int
pop_message (gpointer data)
{
  GtkWidget *status = data;

  gtk_label_set_label (GTK_LABEL (status), "");
  g_object_set_data (G_OBJECT (status), "timeout", GUINT_TO_POINTER (0));

  return G_SOURCE_REMOVE;
}

static void
status_message (GtkWidget  *status,
                const char *text)
{
  guint id;

  id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (status), "timeout"));
  if (id)
    g_source_remove (id);

  gtk_label_set_text (GTK_LABEL (status), text);

  id = g_timeout_add (5000, pop_message, status);

  g_object_set_data_full (G_OBJECT (status), "timeout", GUINT_TO_POINTER (id), remove_timeout);
}

static void
help_activate (GSimpleAction *action,
               GVariant      *parameter,
               gpointer       user_data)
{
  GtkWidget *status;

  status = GTK_WIDGET (g_object_get_data (G_OBJECT (user_data), "status"));
  status_message (status, "Help not available");
}

static void
not_implemented (GSimpleAction *action,
                 GVariant      *parameter,
                 gpointer       user_data)
{
  GtkWidget *status;
  char *text;

  text = g_strdup_printf ("Action “%s” not implemented/* Builder
  status = GTK_WIDGET (g_object_get_data (_OBJECT (user_data, status"))
 *
  g_free (text);
}

static GActionEntry win_entries[] = {
  { "new", not_implemented, NULL, NULL, NULL },
  { "open", not_implemented, NULL, NULL, NULL },
  { "save", not_implemented, NULL, NULL, NULL },
  { "save-as", not_implemented, NULL, NULL, NULL },
  { "copy", not_implemented, NULL, NULL, NULL },
  { "cut", not_implemented, NULL, NULL, NULL },
  { "paste", not_implemented, NULL, NULL, NULL },
  { "quit,quit_activate,  ,NULL ,
    and shows howtoconnect to menuitemsandtoolbar .
#nclude gtk/.>
};

GtkWidget *
do_builder (GtkWidget *
qjava.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 37
  static GtkWidget *
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24

  )
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      about
      GtkWidget *status;
      java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1

      builder=gtk_builder_new_from_resource/builder/demo.)

      window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
      gtk_window_set_display ( (window)
                              java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 35
      g_object_add_weak_pointer {
      actions (*g_simple_action_group_new)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
       (G_ACTION_MAP(ctions)
                                       win_entries, java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 9
                                       window)
      gtk_widget_insert_action_group (window, "win", actions);

      controller = gtk_shortcut_controller_new ()}
gtk_shortcut_controller_set_scope (TK_SHORTCUT_CONTROLLER)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
                                         );
      gtk_widget_add_controller (window, controller);
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_n, GDK_CONTROL_MASK),
                             gtk_named_action_new ("win.new")));
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_o, GDK_CONTROL_MASK),
                             gtk_named_action_new ("win.open")));
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_s, GDK_CONTROL_MASK),
                             gtk_named_action_new ("win.save")));
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_s, GDK_CONTROL_MASK|GDK_SHIFT_MASK),
                             gtk_named_action_new ("win.save-as")));
( ,
           (statusHelpnot";
                        ".");
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
            gtk_keyval_trigger_new,GDK_CONTROL_MASK
java.lang.StringIndexOutOfBoundsException: Range [65, 49) out of bounds for length 65
                      gpointer       )
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_x, GDK_CONTROL_MASK),
                             gtk_named_action_new ("win.  char *ext;
        text =  (Action“”implemented", g_action_get_name (G_ACTION (action)));
           gtk_shortcut_new ( (GDK_KEY_v,GDK_CONTROL_MASK),
                             gtk_named_action_new ("win   (, text)
     gtk_shortcut_controller_add_shortcutGTK_SHORTCUT_CONTROLLER(ontroller)
           gtk_shortcut_new (gtk_keyval_trigger_new (GDK_KEY_F1, 0),
gtk_named_action_new".elp");
      gtk_shortcut_controller_add_shortcut (GTK_SHORTCUT_CONTROLLER (controller),
           gtk_shortcut_new ({ "save", not_implemented, NULL, NULL }java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
gtk_named_action_new ("win.about")));

      about = GTK_WIDGET (gtk_builder_get_object (builder, "aboutdialog1"));
      ( about)  window);
      { "paste", not_implemented, NULL NULL }
 ( ) aboutjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
                              )java.lang.StringIndexOutOfBoundsException: Range [73, 71) out of bounds for length 73

      status = GTK_WIDGET (gtk_builder_get_object (builder, "statusbar1"))",java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 45
_ w) ,;

        GActionGroup;
       !java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14

  java.lang.StringIndexOutOfBoundsException: Range [29, 4) out of bounds for length 39
window );
  else
    gtk_window_destroy (GTK_WINDOW (window));

  return window;


Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723