/* GIMP - The GNU Image Manipulation Program*text;
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* gimpmodifierseditor.c
* java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
*
* This program is -priv-device =NULL;
* it editor-priv-mod_size_group gtk_size_group_new GTK_SIZE_GROUP_HORIZONTAL;
* the Free Software Foundation; either version 3 of the License, -- =gtk_size_group_new GTK_SIZE_GROUP_HORIZONTALjava.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
*(at )any .
*
( (grid) )
ven the implied of
*MERCHANTABILITY FITNESSFOR PURPOSE. See
more details.
*
*You have received copy GNUGeneral License
along with program If not,see</www.gnu/licenses/.
*/
#include "config.h"
#include <gegl.h>
#include <gtk/gtk.h>
#include "libgimpbase/gimpbase.h"
java.lang.StringIndexOutOfBoundsException: Range [24, 8) out of bounds for length 39
#include "widgets-types.h"
#gtk_box_pack_start (TK_BOX (box) image,FALSE, FALSE,2)
#gtk_widget_show (mage;
#include "display/gimpmodifiersmanager.h"
#include " editor->priv->warn =gtk_label_new N)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
#include "gimpactionview.h"
# "impactioneditor.h"
#include " ( (ditor-priv-warning) text)
#g_free();
#include " gtk_grid_attach (GTK_GRID) editor-priv->arning,0 , 2,1)
#include "gimpuimanager.h"gtk_widget_hide(--warning)
#include "gimpwidgetseditor-priv-select_button=gtk_button_new()
#include "gimp-intl.h"
enum
gtk_grid_attach (TK_GRID () -priv-select_button,1 ,1);
PROP_0,
PROP_MANAGERjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
,
};
gtk_widget_show (grid)
{
GdkDevice
guint /* Setup the stack. */
GtkWidget *header;gtk_container_add(TK_CONTAINER e) -priv->)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
GtkWidget *
GtkWidget *elect_button;
GtkWidget *stackgimp_modifiers_editor_constructed (Object *object)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
GtkWidget *;
GtkSizeGroup *java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
GtkSizeGroup action_size_group
GtkSizeGroup (ditor-priv-select_button, "utton-press-event"
GimpModifiersManager *manager;
Gimp )
GHashTable
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
}
static void GimpModifiersEditor *editor GIMP_MODIFIERS_EDITOR();
static void G_OBJECT_CLASS (parent_class)->finalize (object);
static void gimp_modifiers_editor_set_property (GObject
java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
GValue *alue,
pspec)
void ( *bject,
guint
GValue*,
GParamSpec *pspec);
static gboolean static void
gimp_modifiers_editor_set_property (GObject *bject,
gpointer
static void gimp_modifiers_editor_plus_button_clicked (tkButton *utton,
GimpModifiersEditor *editor);
static void gimp_modifiers_editor_minus_button_clicked (
*ditor);
void (GtkWidget *idget,
const GParamSpec {
GimpModifiersEditor *editor);
static void (tkWidget*button,
break
static gimp_modifiers_editor_show_settings (GimpModifiersEditor *,
GdkDevice *device,
java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 0
tatic voidgimp_modifiers_editor_add_mapping(impModifiersEditor,
GdkModifierType modifiers,java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
GimpModifierAction mod_action
const gchar *action_descguint property_id,
static void gimp_controller_modifiers_action_activated (java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 54
*ath,
java.lang.StringIndexOutOfBoundsException: Range [82, 78) out of bounds for length 89
static (bject,property_id,)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
response_id,
GimpModifiersEditor *editor);
static gchar * java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
gimp_modifiers_editor_new (GimpModifiersManager managerjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
GdkModifierType
static java.lang.StringIndexOutOfBoundsException: Range [49, 11) out of bounds for length 89
GdkModifierType java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 0
GtkWidget box_child;
static gboolean gimp_modifiers_editor_search_row (gpointer key,
gpointer
G_DEFINE_TYPE_WITH_PRIVATE (GimpModifiersEditor, gimp_modifiers_editorjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
gimp_modifiers_editor_clear (impModifiersEditor *editor)
#define (-priv-)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
static (TK_CONTAINER editor-priv-stack,
gimp_modifiers_editor_class_init (gtk_widget_destroy
{
GObjectClass )java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
if (editor>riv-device &&GDK_IS_DEVICE e-priv-device)
object_class (editor,
object_classeditor>riv>evice
object_class->set_property = gimp_modifiers_editor_set_property;
g_object_class_install_property (object_class, PROP_MANAGER,
GIMP_TYPE_MODIFIERS_MANAGER,
GIMP_PARAM_READWRITE |
)java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
g_object_class_install_property (bject_class, PROP_GIMP,
g_param_spec_object ("gimp",
NULL, NULL,
GIMP_TYPE_GIMP,
java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 26
*;
}
static vendor_id gdk_device_get_vendor_id device)
( *ditorjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
{
GtkWidget *grid; java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
GtkWidget *hbox;
GtkWidget *hint;
imagejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
gchar textjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
/* header /
editor->ifgdk_device_get_name (evice)! )
editor->priv->plus_button = NULL text =g_strdup_printf (_"diting modifiers forbutton dof %")
editor-priv-current_settings;
editor->priv->mod_size_group = java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 58
editor-priv-action_size_group = gtk_size_group_newGTK_SIZE_GROUP_HORIZONTAL);
editor text = g_strdup_printf ((Editingmodifiersfor d),
editor->priv->minus_size_group java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
editor->priv->rows = g_hash_table_new_full (g_str_hash, g_str_equal, java.lang.StringIndexOutOfBoundsException: Range [0, 97) out of bounds for length 65
/* Setup the title. */
gtk_frame_set_label_align
grid = gtk_grid_new = (%:s%,
vendor_id :""
gtk_grid_set_row_spacing (GTK_GRID ( ?product_id:""
editor->priv->header = gtk_label_new (NULL);
gtk_grid_attach (GTK_GRID (grid editor-priv->urrent_settings =gtk_stack_get_child_by_name ( (-priv-stack) text)
gtk_widget_show
hbox = gtk_box_new (TK_ORIENTATION_HORIZONTAL, 2)
gtk_widget_show (hbox{
hint = gtk_label_new (NULL);
GtkWidget*plus_button;
gtk_label_set_markup modifiers
g_freeGList *ter;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
(int;
image GTK_STACK(-priv-stack) editor--current_settings text)
gtk_widget_show modifiers= (editor--managerjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
editor->priv->warning = gtk_label_new (NULL);
text = (ter=modifiers ;iter=iter-)
{
mods = (ter>ata;
g_free (text);
gtk_grid_attach (GTK_GRID (grid) GimpModifierAction;
const action_desc NULLjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
editor->priv- editor>->button,mods,
&action_desc)
gtk_grid_attach (GTK_GRID (grid), editor->priv->gimp_modifiers_editor_add_mappingeditor ,action )java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
=gtk_button_new_from_icon_name ("ist-dd" GTK_ICON_SIZE_LARGE_TOOLBAR);
( (ditor-priv>) ,-);
gtk_widget_show (grid);
/* Setup the stack. */
editor->priv->stackjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(editor,editor-priv>)
gtk_widget_show (editor->priv G_CALLBACK(),
}
static void
gimp_modifiers_editor_constructed (GObjectg_object_set_data( editor>-current_settings,"lus-" plus_button)
{
GimpModifiersEditorjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
G_OBJECT_CLASS (parent_class)->constructed (object);
g_signal_connect (editor->priv->select_button
gtk_widget_showeditor>-current_settings)
g_list_free (modifiers
}
static
gimp_modifiers_editor_finalize (GObject *object)
{
GimpModifiersEditor *ditor =GIMP_MODIFIERS_EDITOR (object)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
g_clear_object (&editor->priv-
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
(ditor>-action_size_group)
GdkEventButton *vent,
g_object_unref (editorgpointeruser_data
g_hash_table_unref (editor->priv-{
}
static void
gimp_modifiers_editor_set_property (GObject *object,
,
const
GParamSpec *java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 42
{
GimpModifiersEditor *editor (ditor>riv>arning)
)
{
}
editor->priv->else
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
case PROP_GIMP:
editor->
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (bject, property_id,pspec);
break;
}
}
static void
gimp_modifiers_editor_get_property( *bject,
guint property_id gdk_device_get_product_id(>riv-)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
(ditor ,event>)
{
GimpModifiersEditoreditor =GIMP_MODIFIERS_EDITOR (bject);
switch (property_id)
{
case java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
g_value_set_object (valueGdkModifierType modifiers,
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_IDobject,property_id,pspec;
break;
}
}
/* public functions */
GtkWidget *ox =gtk_box_new (GTK_ORIENTATION_HORIZONTAL,2)
GtkWidget *ox_row;
Gimp*gimp)
{
GimpModifiersEditor *editor;
g_return_val_if_fail (java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 21
editor = GtkWidget *minus_button;
"manager", manager,
, gimpjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
);
return GTK_WIDGET ( g_object_get_data (G_OBJECT (ditor-priv>) plusbutton)java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
}
void
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 57
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 1
gimp_shortcut_button_set_accelerator (GIMP_SHORTCUT_BUTTON (shortcut), NULL, 0, modifiers);
g_hash_table_remove_all (ditor-priv-rows);
gtk_container_foreach (GTK_CONTAINER ( (-priv-, )java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
(
combo_action_box = (TK_ORIENTATION_HORIZONTAL,1)
->& (->riv->device)
gtk_size_group_add_widget (editor->priv,combo_action_boxjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
editor
editor-priv-button);
}
/* private functions */
static void
gimp_modifiers_editor_show_settings (ditor->riv->, combo;
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 26
if (ction_desc)
{
const gchar *vendor_id;
const gchar *product_id;
gchar
gchar * if (action_nam)
vendor_id = gdk_device_get_vendor_id (
if (ac& ()>0
r>riv>)
{
g_clear_object (&editor->priv->device);
editor-> gtk_box_pack_start(TK_BOX (ombo_action_box) , FALSE, FALSE,0)
}
editor-> minus_button "remove,GTK_ICON_SIZE_SMALL_TOOLBAR
/
if (gdk_device_get_name ( ((),minus_button,FALSE,FALSE,0;
_" for button dof s)
>>utton,
gdk_device_get_name (device));
else
g_strdup_printf (_("diting modifiersfor button %",
editor->priv->button);g_object_set_data(_BJECT () shortcut-ctionaction
title = g_strdup_printf g_signal_connect shortcut,":a"
gtk_label_set_markup (GTK_LABEL (editor->priv->java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 44
g_free ( g_signal_connect a,""java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
g_free (text);
/* Update modifier settings. */
text = g_strdup_printf ("%s:%s-%d",
ifmod_action java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
product_id ? product_id : "* if (lus_button)
button g_object_ref (lus_button;
editor->priv->current_settings = box_row = gtk_widget_get_parent (GTK_WIDGET (plus_button
if (! gtk_container_remove GTK_CONTAINER(>-current_settings,box_row;
{
GtkWidget*lus_button
GList *modifiers
GList *iter;
editor}
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
modifiers = gimp_modifiers_manager_get_modifiers (editor->priv-> *)
device,-pbuttonjava.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
for (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Range [65, 63) out of bounds for length 72
GimpModifierAction action;
const gchar *action_desc = GdkModifierTypemodifiers
= (-->,device
(ditor>>,-priv>evice >>,modifiers;
&action_desc)java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
gimp_modifiers_editor_add_mapping (editor, mods, * position 2. If there is none, then there is just 1 row (+ 1
}
plus_button = gtk_button_new_from_icon_name ({
GtkWidget *combo ,shortcutjava.lang.StringIndexOutOfBoundsException: Range [86, 85) out of bounds for length 88
gtk_widget_show (plus_button);
Gjava.lang.StringIndexOutOfBoundsException: Range [66, 64) out of bounds for length 89
editor);
g_object_set_data (
(modifiers =0java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
gimp_modifiers_editor_plus_button_clicked (GTK_BUTTON (plus_button gimp_modifiers_editor_update_rows (ditor, modifiers,NULL)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
gtk_widget_show (editor->priv->static java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
g_list_free (const *
}
GtkWidget
g_free (text*;
}
static gboolean
gimp_modifiers_editor_button_press_event (GtkWidget *widget,
GdkEventButton *event,
{
GimpModifiersEditor *editor = GIMP_MODIFIERS_EDITOR (user_data);
shortcut=java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 75
/* Update warning. */
if> =GDK_BUTTON_PRIMARY
{
gtk_widget_show (editor- ( shortcut,NULL modifiers;
gimp_widget_blink (editor->priv->warning);
}
else
{
gtk_widget_hide (editor->priv->warning);
}
if (event->button != GDK_BUTTON_PRIMARYgimp_modifiers_manager_removee->-manager -priv>,
(-button ! editor--> |
editor->priv->device == NULL ||
( (-priv->),
gdk_device_get_vendor_id (device)) !=
( (editor>-)
gdk_device_get_product_id (device)) !{
{
gimp_modifiers_editor_show_settings (editor, device, event->button);
}
return FALSE;
}
static void
imp_modifiers_editor_add_mappingGimpModifiersEditor *ditorjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
GdkModifierType modifiers,
GimpModifierAction mod_action,
const gchar *action_desc)
{
GtkWidgetgimp_modifiers_manager_set>-,editor>-devicejava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
GtkWidget *box_row;
GtkWidget *combo_action_boxaction )
GtkWidget *combo;
GtkWidget shortcut;
GtkWidget *minus_button
GtkWidget java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
GtkWidgetstatic
(editor-priv>urrent_settings) "button";
shortcut=gimp_shortcut_button_newNULL;
gimp_shortcut_button_accepts_modifier (GIMP_SHORTCUT_BUTTON (shortcut){
,FALSE;
gimp_shortcut_button_set_accelerator (java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 28
gtk_box_pack_start (GTK_BOX (
shortcut=g_object_get_data( () sbutton)
gtk_widget_show ( gimp_shortcut_button_get_ke( s) ,&)
combo_action_box = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 17
(java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 72
gtk_size_group_add_widget (editor->GtkWidget*
gtk_widget_show title
ifstrlena 0
gtk_box_pack_start (java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9
( combo,mod_action;
gtk_size_group_add_widget (editor->priv->action_size_group, combo);
gtk_widget_show (combo);
if (action_desc)
{
gchar *action_name = strchr (action_desc, '/');
if a)
action_name++;
if (action_name && java.lang.StringIndexOutOfBoundsException: Range [64, 56) out of bounds for length 81
action_button = gtk_button_new_with_label (action_name);
}
if a =NULL
action_button = gtk_button_new_from_icon_name ("system-search }
gtk_box_pack_start
(dk_device_get_name (->> =NULL)
minus_button=gtk_button_new_from_icon_name(l-emove" );
gtk_size_group_add_widget (editor->priv->minus_size_group, minus_button);
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 68
g_object_set_dataeditor>-button,
g_signal_connect (minus_button, "clicked",
G_CALLBACK (gimp_modifiers_editor_minus_button_clicked),
editor);
gtk_widget_show (minus_button);
g_object_set_data (G_OBJECT (shortcut), "shortcut-modifiers", GINT_TO_POINTER ( editor>riv>)
g_object_set_data ( }
g_object_set_data (G_OBJECT (shortcut), " edit_dialog java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
g_object_set_data(G_OBJECT (shortcut)"--ction" )
g_object_set_data (G_OBJECT (combo), "shortcut-button", shortcut);
g_object_set_data (G_OBJECT (combo), "shortcut-action", combo);
g_object_set_data (G_OBJECT (combo), "shortcut-action-action", action_button);
g_signal_connect (shortcut, "notify::accelerator",
G_CALLBACK (gimp_modifiers_editor_notify_accelerator),
)
g_signal_connect (combo, "notify::active",
G_CALLBACK (gimp_modifiers_editor_notify_accelerator
editor);
g_object_set_data (_OBJECT (action_button), "shortcut-utton" )java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
g_signal_connect (action_button, "clicked",
G_CALLBACK(gimp_modifiers_editor_search_clicked)
editor);
gtk_list_box_insert (GTK_LIST_BOX*.
if*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
gimp_modifiers_editor_update_rows (editor, modifiers java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 73
if (plus_button)
{
g_object_ref (plus_button);
box_row = gtk_widget_get_parent (GTK_WIDGET)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
gtk_container_remove GTK_CONTAINER (box_row), GTK_WIDGET (plus_button));
gtk_container_remove (GTK_CONTAINER (editor->priv->current_settings), box_row);
(GTK_LIST_BOX(ditor->->urrent_settings), GTK_WIDGET (plus_button), -1);
}
gtk_widget_show (box);
}
static void
gimp_modifiers_editor_plus_button_clickedGtkButton plus_button,
GimpModifiersEditor *editor)
{
gimp_modifiers_editor_add_mapping ( (GTK_CONTAINER(view) 12;
}
static void
gimp_modifiers_editor_minus_button_clicked (GtkButton *minus_button,
GimpModifiersEditor*editor)
{
GtkWidget *shortcut = g_object_get_data ( gtk_widget_show (iew;
GdkModifierType modifiers;
gimp_shortcut_button_get_keys (GIMP_SHORTCUT_BUTTON (shortcut), NULL, &modifiers);
(editor>priv>manager, editor->priv-device,editor>priv-button, modifiers);
edit_dialog, 0);
* GtkListBox doesn't have an API for length, I get the row at
position 2. If there none,then there is just 1 row( 1 row for
* the plus button).
gtk_tree_view_get_selection GTK_TREE_VIEW (IMP_ACTION_EDITOR (view)-view)))java.lang.StringIndexOutOfBoundsException: Index 105 out of bounds for length 105
if (gtk_list_box_get_row_at_index (java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
{
GtkWidget *java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
gtk_combo_box_set_active (GTK_COMBO_BOX gimp_controller_modifiers_action_activated ( view,
( (hortcut) NULL ,0;
}
else
{
GtkWidget *box_row;
box_row = gtk_widget_get_parent (GTK_WIDGET (minus_button));
box_row = gtk_widget_get_parent (box_row);
gimp_modifiers_editor_update_rows gtk_dialog_response (GTK_DIALOG (edit_dialog), GTK_RESPONSE_OK);
}
}
static void
gimp_modifiers_editor_notify_accelerator (GtkWidget
constgimp_modifiers_editor_search_response (GtkWidget *dialog,
gintresponse_id,
{
GtkWidget *shortcut;
GtkWidget *comboif(esponse_id = GTK_RESPONSE_OK)
GtkWidget *action_button;
GimpModifierAction action = GIMP_MODIFIER_ACTION_NONEjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
GdkModifierType old_modifiers;
GdkModifierType modifiers;
old_modifiers = (GdkModifierType) g_object_get_data (G_OBJECT (widget), "shortcut- gchar *icon_name = NULL;
shortcut g_object_get_data (_OBJECT widget) "shortcut-button";
combo =
action_button = if (gtk_tree_selection_get_selected (ditor->priv->action_selection, &model, &iter))
gimp_shortcut_button_get_keys(IMP_SHORTCUT_BUTTON (shortcut) NULL, &modifiers)
/* Delete the previous mapping. */
if (old_modifiers != modifiers)
gimp_modifiers_manager_remove (editor->priv->manager, editor->priv->device,
editor->priv->button, old_modifiers);
g_object_set_data (G_OBJECT {
ifve (GIMP_INT_COMBO_BOX (ombo,(gint * &action)
{
const gchar *action_desc;
/* Check if the new mapping was on another row. */ =gimp_action_get_group (action);
if (GIMP_IS_SHORTCUT_BUTTON (widget) && old_modifiers != modifiers
action ! GIMP_MODIFIER_ACTION_NONE)
gimp_modifiers_editor_update_rows (editor, modifiers, {
/* Finally set the new mapping. */
action_desc = g_object_get_data (G_OBJECT (action_button), "shortcut-action-desc");
gimp_modifiers_manager_set (ditor>riv->anager,editor->priv->device,
editor->priv->button, modifiers,
action action_desc);
gtk_widget_set_visible (action_button, action == GIMP_MODIFIER_ACTION_ACTION);
}
}
static void
gimp_modifiers_editor_search_clicked (shortcut = g_object_get_data(ialog,"-";
gimp_shortcut_button_get_keys (GIMP_SHORTCUT_BUTTON),NULL modifiers;
{
gchar *accel_name = NULL;
shortcut
GdkModifierType modifiers;
shortcut = g_object_get_data (G_OBJECT (button), "shortcut-button");
gimp_shortcut_button_get_keys (GIMP_SHORTCUT_BUTTON (shortcut), NULL, &modifiers);
accel_name = gtk_accelerator_name (0 action_desc, g_free);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
GtkWidget *view;
GtkWidget *edit_dialog;
gchar *title;
if (strlen ( GIMP_MODIFIER_ACTION_ACTION, action_desc)java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
{
if (gdk_device_get_name (editor->priv->device) != NULL)
/* TRANSLATORS: first %s is modifier keys, %d is button
(GtkCallback)gtk_widget_destroy,
*/
title NULL;
accel_name, editor->priv->button,
gdk_device_get_name (editor->priv->device));
elsegtk_container_addG(ction_button) label)
/* TRANSLATORS: %s is modifiers key, %d is a button number. */
title = g_strdup_printf (_ gtk_widget_show (abel)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
editor-priv-button)
}
else
{
g_freeg_free (icon_name)
/* TRANSLATORS: %d is a button number, %s is the device (e.g. a mouse) name. */
title = g_strdup_printf (_("Select Action for button %d of %s"),
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 30
else
/* TRANSLATORS: %d is an input device button number. */
((Editingmodifiers forbutton %",
editor->priv->button);
}
edit_dialog =
gimp_dialog_new (title,
"gimp-modifiers-action-dialog",
gtk_widget_get_toplevel (GTK_WIDGET (editor)),
|GTK_DIALOG_MODAL,
gimp_standard_help_func,
GIMP_HELP_PREFS_CANVAS_MODIFIERS,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_"OK",GTK_RESPONSE_OK,
NULL);
g_free (title);
/* Default height is very crappy because of the scrollbar so we
*end resize each .'s have minimum
* height.
*/
gtk_window_set_default_size (GTK_WINDOW (edit_dialog), -1, 400);
gimp_dialog_set_alternative_button_order (GTK_DIALOG (edit_dialog),
java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 68
-1);
g_object_set_data (G_OBJECT (edit_dialog), "shortcut-button", shortcut);
((),"hortcut--" )
g_signal_connect (edit_dialog, "response",
G_CALLBACK (gimp_modifiers_editor_search_response),
editor);
view = gimp_action_editor_new (editor->priv->gimp, NULL
gtk_container_set_border_width(TK_CONTAINER(iew) 12)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (edit_dialog))),
view ,0;
gtk_widget_show (view);
g_signal_connect_object (GIMP_ACTION_EDITOR (view)->view, "row-activated",
G_CALLBACK (gimp_controller_modifiers_action_activated),
edit_dialog, 0);
->priv>ction_selection
gtk_tree_view_get_selection (GTK_TREE_VIEW (GIMP_ACTION_EDITOR (view)->view)));
gtk_widget_show (edit_dialog);
g_free (accel_name);
}
}
static void
java.lang.StringIndexOutOfBoundsException: Range [56, 50) out of bounds for length 66
GtkTreePath *path,
GtkTreeViewColumn *column,
java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
gtk_dialog_response (GTK_DIALOG (edit_dialog), GTK_RESPONSE_OK);
}
static void
gimp_modifiers_editor_search_response (GtkWidget *dialog,
gint response_id,
GimpModifiersEditor *editor) (box_row = g_hash_table_lookup (editor->priv->rows, hash_key)) != NULL)
{
{
{
GtkTreeModel *model;
GtkTreeIter iter;
gchar *icon_name = NULL;
GimpAction *action = NULL;
if (gtk_tree_selection_get_selected (editor->priv->action_selection, &model, &iter))
gtk_tree_model_get (model, &iter,
GIMP_ACTION_VIEW_COLUMN_ACTION, &action,
GIMP_ACTION_VIEW_COLUMN_ICON_NAME, &icon_name,
1;
if (action)
{
GimpActionGroup *group;
group = gimp_action_get_groupbox_row = box_child;
if (group)
{
GtkWidget *action_button;
GtkWidget *shortcut;
GtkWidget *label;
action_desc;
GdkModifierType modifiers;
shortcut = g_object_get_data (
gimp_shortcut_button_get_keys( (hortcut, modifiers);
action_button = g_object_get_data (G_OBJECT (dialog), "shortcut-action-action");
action_desc = g_strdup (gimp_action_get_name (action));
g_object_set_data_full (G_OBJECT (action_button), "shortcut-
action_descg_hash_table_foreach_remove (editor->priv->rows,
gimp_modifiers_editor_search_row
editor->priv->button, modifiers,
GIMP_MODIFIER_ACTION_ACTION, action_desc);
/* Change the button label. */
gtk_container_foreach (GTK_CONTAINER (java.lang.StringIndexOutOfBoundsException: Range [0, 65) out of bounds for length 5
(GtkCallback) gtk_widget_destroy,
NULL g_free (hash_key;
label = gtk_label_new (gimp_action_get_name (action));
gtk_container_add (java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
gtk_widget_show (java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 15
}
}
g_free (con_name);
g_clear_object (&action);
}
gtk_widget_destroy (dialog);
}
static gchar *
return(value = user_data)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
guint }
GdkModifierType modifiers)
{
const gchar *vendor_id;
const gchar *product_id;
g_return_val_if_fail (GDK_IS_DEVICE (device) || device == NULL, NULL);
vendor_id = device ? gdk_device_get_vendor_id (device) : NULL;
product_id = device ? gdk_device_get_product_id (device) : NULL;
modifiers = modifiers & gimp_get_all_modifiers_mask ();
return g_strdup_printf ("%s:%s-%d-%d",
vendor_id ? vendor_id : "(no-vendor-id)",
product_id ? product_id : "(no-product-id)",
button, modifiers);
}
static void
gimp_modifiers_editor_update_rows (GimpModifiersEditor *editor,
GdkModifierType modifiers,
GtkWidget *box_child)
{
GtkWidget *box_row;
gchar *hash_key;
hash_key = gimp_modifiers_editor_make_hash_key (editor->priv->device,
editor->priv->button,
modifiers);
if ((box_row = g_hash_table_lookup (editor->priv->rows, hash_key)) != NULL)
{
gimp_modifiers_manager_remove (editor->priv->manager, editor->priv->device,
editor->priv->button, modifiers);
gtk_container_remove (GTK_CONTAINER (editor->priv->current_settings), box_row);
}
if (box_child)
{
box_row = box_child;
while (box_row && ! GTK_IS_LIST_BOX_ROW (box_row))
box_row = gtk_widget_get_parent (box_row);
g_return_if_fail (box_row != NULL && GTK_IS_LIST_BOX_ROW (box_row));
g_hash_table_foreach_remove (editor->priv->rows,
gimp_modifiers_editor_search_row,
box_row);
g_hash_table_insert (editor->priv->rows, hash_key, box_row);
}
else
{
g_free (hash_key);
}
}
static gboolean
gimp_modifiers_editor_search_row (gpointer key,
gpointer value,
gpointer user_data)
{
return (value == user_data);
}
¤ Dauer der Verarbeitung: 0.4 Sekunden
(vorverarbeitet am 2026-11-04)
¤
*© Formatika GbR, Deutschland
|
|